The dateTimeLib.dateValueFromGregorian() system function returns a DATE value that corresponds to an integer representation of a Gregorian date.
dateTimeLib.dateValueFromGregorian( gregorianIntegerDate INT? in) returns (result DATE?)