Skip to main content



Day Function

Returns the day of the month for a given Date or DateTime.

Syntax 1

Day()

Returns the day of the month for a given Date or DateTime.

Syntax 2

Day(dateTime)

Returns the day of the month for a given Date or DateTime.

Arguments

dateTime DateTime - A DateTime or Date.

Remarks

Example:

Day("2005-1-28"); // returns 28

Example:

Day(); // returns the current day of the month