Power Query
published
Search
⌃K

Date.StartOfYear

Date.StartOfYear

Returns the first value of the year.
function (optional dateTime as nullable any) as nullable any

Description

Returns the first value of the year given a date, datetime, or datetimezone value.

Category

Date

Examples

Find the start of the year for October 10th, 2011, 8:10:32AM (#datetime(2011, 10, 10, 8, 10, 32)).
Date.StartOfYear(#datetime(2011, 10, 10, 8, 10, 32))

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