def
func:firstOfMonth
firstOfMonth(date)
Get the first day of given date's month. Also see lastOfMonth()
.
Example:
2009-10-28.firstOfMonth >> 2009-10-01
Get the first day of given date's month. Also see lastOfMonth()
.
Example:
2009-10-28.firstOfMonth >> 2009-10-01