Carrot reference
Functions

monthStart()

Returns the first day of a given month.

Syntax

monthStart([date])

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

Sample usage

monthStart('2020-05-12') returns 2020-05-01.

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 first day in that month.

Unsupported data types

Null

Unsupported data types return Null.



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