GetDayOfMonth

This function evaluates to a number which represents the day of the month of the given datetime in units of time

Description

The day of the month as a unit of time.

Type

NUMERIC

Arguments

Type

Meaning

1

DATETIME

the datetime whose day of month to determine

Evaluation

The datetime argument; which may be specified symbolically, is converted into an actual datetime. Then, the day of the month in which the datetime is, is determined. This function requires that the datetime be at least partially specified with a valid month and day, E.g. @"January 1" or @"Current Month 23" will work.

Comments

When displayed, the return value will be displayed according to the active unit scheme’s time unit type rule. For example, if the active unit scheme displays Time values as Hours, then the return value for @”January 2” will be displayed as 48 “hours”.

To convert the return value into a dimensionless value representing the number of days, divide it by 1 “day”.

As elsewhere in RiverWare 24:00 hours is considered to be the day which is ending, and 00:00 hours is considered to be the day which is just beginning.

 
GetDayOfMonth(@"February 23, 1996")
 
23.0 “day” or 553 “hour”