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