Skip to content

startOfMonth

startOfMonth(datetime) → datetime · Date & Time

Get the first day of the month for the given date.

  • datetime (required): a date or datetime value
utlx
startOfMonth(parseDate("2026-05-15", "yyyy-MM-dd"))
// 2026-05-01T00:00:00

Released under AGPL-3.0.