RAD function: month

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

Function

month

Format

$ymonth=month($date)

Parameters

Where the $date variable is the date and time value.

Example

$ymonth=month(`2/15/96')

After execution, the value of $ymonth is 2.