date.firstOfMonth

Syntax date.firstOfMonth (date)

Params date is a valid Frontier date or a string that can be coerced to a date.

Action Returns a date value corresponding to midnight on the first day of the specified month

Returns A date value corresponding to midnight on the first day of the specified month

Examples date.firstOfMonth ("12/25/97")

   » "12/1/97; 12:00:00 AM"

date.firstOfMonth (clock.now ())

   » "4/1/00; 12:00:00 AM"

See Also date.lastOfMonth

date.nextMonth

date.prevMonth

Discuss