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

Return value

Date — A new Date.

Example

Code
dim x = DateFromParts(2021, 3, 12)
print x
Output
2021-03-12