The dateTimeLib.dayOf() system function returns a positive integer that represents a day of the month (1-31), as derived from a TIMESTAMP variable.
dateTimeLib.dayOf(aTimeStamp TIMESTAMP? in) returns (result INT?)