Skip to main content

Date.StartOfYear

Returns the start of the year.

Syntax

Date.StartOfYear(
dateTime as any
) as any

Remarks

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

Examples

Example #1

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

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

Result:

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

Category

Date