RAD function: day

A RAD function that returns the day of month for a date, regardless of the date format.

Function

day

Format

day=day($date)

Where the value of $date is a date and time value.

Factors

Although the set.timezone function affects the way a date is presented, the day function always extracts the proper day value.

Example

$mday=day(‘2/15/08’)

After execution, the value of $mday is 15.