website logo
Navigate through spaces
Carrot reference
⌘K
Carrot reference
Getting started with Carrot
Premade Carrot filters
Operator precedence
Expression truthiness
Carrot fields
Basic Org Information
Compensation
Job Changes
Permissions
Personal
Recruiting
Structure
Time off
Data types
Elements of Carrot expressions
Functions
Operators
Keywords
Aggregators
Docs powered by archbee 
website logo

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 01 Feb 2023
Did this page help you?
Yes
No
UP NEXT
formatMoney()
Docs powered by archbee