last day of month
FEEL built-in function · FEEL date and time functions
last day of month(date)
Not part of the DMN 1.6 standard: an extension supported by the engine behind this site. A model that uses it may not run on other DMN engines.
Returns the day number of the last day of the value's month (28, 29, 30 or 31), handy for billing-period and deadline logic.
Parameters
| Parameter | Type | Description |
|---|---|---|
| date | date or date and time | the value to inspect |
Examples
last day of month(date("2026-02-10"))
28
Try it ↑
Edge cases and null handling
last day of month(date("2024-02-10"))
29
Try it ↑
last day of month(date and time("2026-04-10T10:00:00"))
30
Try it ↑
Part of FEEL date and time functions: date arithmetic, the two kinds of duration, time zones, and every temporal function side by side.
Related functions
Not defined by the OMG DMN 1.6 specification; documented here because the engine behind this site supports it.