Construct-Date
Command Description
Construct a date based on year, month and day
Command Prototype
dTime = Time.DateSerial(iYear, iMonth, iDay)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
iYear | True | number | 2020 | What‘s the year of the time to be constructed |
iMonth | True | number | 1 | The month in which the time is to be constructed |
iDay | True | number | 1 | What‘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
*/