Date.StartOfYear

Syntax

Date.StartOfYear(dateTime as any) as any

About

Returns the start of the year that contains dateTime. dateTime must be a date, datetime, or datetimezone value.

Example 1

Find the start of the year for October 10th, 2011, 8:10:32AM.

Usage

Date.StartOfYear(#datetime(2011, 10, 10, 8, 10, 32))

Output

#datetime(2011, 1, 1, 0, 0, 0)