STD.Date.DateFromParts( year, month, day )
year | An INTEGER2 year value in the range 0 to 9999. |
month | An UNSIGNED1 month value in the range 1 to 12. |
day | An UNSIGNED1 day value in the range 1 to 31. |
Return: | DateFromParts returns an UNSIGNED4 value. |
The DateFromParts function returns a Date_t value from the year, month, and day parameters.
Example:
IMPORT STD; INTEGER2 MyYear := 2012; UNSIGNED1 MyMonth := 1; UNSIGNED1 MyDay := 1; D := STD.Date.DateFromParts(MyYear,MyMonth,MyDay); //D contains 20120101, representing January 1, 2012