Esc

last_of_month

procedureextensionsince 0.36.1Source
  • macOS: last_of_month works on macOS
  • Linux: last_of_month works on Linux
  • Windows: last_of_month works on Windows
  • Wasm: last_of_month works on Wasm

Returns the last day of the validated date's month.

Signature

last_of_month :: (value: Date) -> Date
Example↗
d := last_of_month(Date.{ 2024, 2, 10 });
assert(d.day == 29);

See also