Skip to main content
Scalar function
Aliases: last_day NULL value yields NULL. Unrepresentable calendar dates raise an error.

Syntax

Scalar

Arguments

Returns

  • Type: DATE
  • NULL behavior: NULL value yields NULL. Unrepresentable calendar dates raise an error.

Properties

Usage notes

  • Inputs are converted to DATE before finding the last day of the month.

Examples

Basic example

Leap years and ordinary years

Limitations

  • Use DATE values or the TIMESTAMP conversions shown here. TIME inputs are outside these forms.
Last modified on October 15, 2026