--- title: "last date of month()" slug: "date-end-of-month" updated: 2026-08-13T08:40:59Z published: 2026-08-13T08:40:59Z canonical: "docs.lobstersoftware.com/date-end-of-month" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # last date of month() This function returns the last date of a month. The month is given in **a** with a date/timestamp. ## Parameters | Parameter | Description | | --- | --- | | a | Date or timestamp. | ## Examples | Parameter a | Result | | --- | --- | | 2022-02-05 | 2022-02-28 | | 2024-02-01 | 2024-02-29 | | 2023-03-15 | 2023-03-31 |