Skip to main content

Date.Day

Returns the day component.

Syntax

Date.Day(
dateTime as any
) as number

Remarks

Returns the day component of a date, datetime, or datetimezone value.

  • dateTime: A date, datetime, or datetimezone value from which the day component is extracted.

Examples

Example #1

Get the day component of a <code>date</code>, <code>datetime</code>, or <code>datetimezone</code> value representing the date and time of 5/14/2011 05:00:00 PM.

Date.Day(#datetime(2011, 5, 14, 17, 0, 0))

Result:

14

Category

Date