Icon MonthOf

Unit: Internal

Available In: Client and Server Applications

function MonthOf(Value: DateTime; UTC: Boolean=False): Integer

The MonthOf function returns the month number of the input parameter in local or UTC time. The return value is an Integer value.

Examples

X := MonthOf(Date);  // X is 2 (assuming a date of 02/13/2012)
Image