Day

STD.Date.Day( date )

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

The Day function returns the Day number from the date value.

Example:

IMPORT STD;
UNSIGNED4 MyDate := 20120101;   //January 1, 2012
  
D := STD.Date.Day(MyDate);
    //D contains 1, representing the first of the month