Investment Studio > Expressions > Functions > Date & Time > DAY

integer day(date argument)

Returns the day of month encoded in the argument. The result is an integer in the range [1, 31].

Automatic type conversion allows the use of a date string as argument instead of an explicit date value.

Example

=day(35961)

and (assuming standard US date format settings)

=day("6/15/1998")

both equal 15.

See also date, datevalue, month, now, timevalue, today, year.