Day

Use the Day function to return a variant (Integer) specifying a whole number between 1 and 31, inclusive, representing the day of the month.

Syntax

Day(date)

The required date argument is any variant, numeric expression, string expression, or any combination, that can represent a date. If date contains Null, then Null is returned.

If the Calendar property setting is Gregorian, then the integer returned represents the Gregorian day of the month for the date argument. If the calendar is Hijri, then the integer returned represents the Hijri day of the month for the date argument.

Example

This example returns "1":

Day("01-01-2016")

This example returns "16":

Day("16 Jan 2016")

This example returns "31":

Day("31 January 16")