DAY

Purpose

This function returns the day of a date.

Syntax

day::=

Usage Notes

  • This function can also be applied on strings, in contrast to function EXTRACT.
  • For data type TIMESTAMP WITH LOCAL TIME ZONE this function is calculated within the session time zone.

Example

SELECT DAY(DATE '2010-10-20');