Carrot reference
Functions

monthEnd()

Returns the last day of a given month.

Syntax

monthEnd([date])

  • date - (optional) the date from which to derive the last day of that date's month.
  • Return type: Date

Sample usage

monthEnd('2020-05-12') returns 2020-05-31.

Supported data types

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.



Updated 04 Oct 2023
Doc contributor
Did this page help you?