EOMONTH

The EOMONTH function takes the date as input and returns the ending date of the month. Node references and measures are also accepted as input arguments. Use DATE.SET()arrow-up-right to set the format of the output date.

Optionally, you can specify an offset for the return date, which may be a positive or negative number. Additional months are added to or subtracted from the end date depending on the offset value.

Syntax

EOMONTH(date)
EOMONTH(date,offset)

Arguments

date - The date which is passed as an input to the function. Required.

offset - Number of months to be added to or subtracted from the end date of the month. Optional.

Return value

Date representing the end of the month.

Example

EOMONTH("05/29/2024")
//Returns 31/5/2024
EOMONTH("05/29/2024",3)
//Returns 31/8/2024, adding 3 more months to 31/5/2024
EOMONTH

If you wish to add one or two more months to the ending date, you can use 1 or 2 as offset values respectively.

EOMONTH with offset

Last updated

Was this helpful?