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