4min
monthStart()
Returns the first day of a given month.
monthStart([date])
- date - (optional) the date from which to derive the first day of that date's month
- Return type: Date
monthStart('2020-05-12') returns 2020-05-01.
Input type | Return type | Logic |
Date | Date | The input date specifies the desired month. The month is then used to determine the first day in that month. |
Unsupported data types | Null | Unsupported data types return Null. |