DayOfMonth

Summary

The DayOfMonth function returns the numeric day of the month for a specified date.

Syntax

DayOfMonth(<date|date_time|instant|offset_date_time|zoned_date_time>)

Return Type

Integer

Details

Values range from 1-31.

Examples

eval DayOfMonth(ToDate(‘2042-04-01’));

screen-shot-2016-09-21-at-9-28-14-am

select date1, DayOfMonth(date1), DayOfMonth(date_time1), DayOfMonth(offset_date_time1), DayOfMonth(zoned_date_time1) from AllTypes();

screen-shot-2016-09-21-at-9-28-09-am

Related Functions

DayOfWeek

DayOfYear

Month

Quarter

Week

Year