Skip to main content
Version: v6.7.0

Construct-Date

Command Description​

Construct a date based on year, month and day

Command Prototype​

dTime = Time.DateSerial(iYear, iMonth, iDay)

Parameter Description​

ParameterRequiredTypeDefaultDescription
iYearTruenumber2020What‘s the year of the time to be constructed
iMonthTruenumber1The month in which the time is to be constructed
iDayTruenumber1What‘s the day of the time to be constructed

return​

dTime,The variable used to save the output of the command.

Demo​

Dim dTime 
dTime = Time.DateSerial(2022, 2, 9)
TracePrint(dTime)
/**
dTime = 44601.0
*/