DateFromParts Procedure
Creates a
Date for the specified year, month, and day.
Declaration
function DateFromParts(
year as Number, month as Number, day as Number
) as Date
Parameters
- year as Number — Four-digit year.
- month as Number — Month (1-12).
- day as Number — Day (1-31).
Return value
Date — A new
Date.
Example
Code
dim x = DateFromParts(2021, 3, 12)
print x
Output