Month

STD.Date.Month( date )

dateA date value in the Date_t format.
Return:Month returns an INTEGER value in the range of 1 through 12.

The Month function returns the month number from the date value.

Example:

IMPORT STD;
UNSIGNED4 MyDate := 20120101;   //January 1, 2012
  
M := STD.Date.Month(MyDate);
    //M contains 1, representing January