Returns 1 January of the validated date's year.
Signature
first_of_year :: (value: Date) -> Date
d := first_of_year(Date.{ 2024, 3, 15 });
assert(d.month == 1 && d.day == 1);Returns 1 January of the validated date's year.
first_of_year :: (value: Date) -> Date
d := first_of_year(Date.{ 2024, 3, 15 });
assert(d.month == 1 && d.day == 1);