You can use the SetDateTime attribute function to set the date and time of the variable.
Syntax | ||||
SetDateTime(Day, Month, Year[, Hour][, Minute] [, Second]) | ||||
Return value | ||||
None | ||||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
Day |
Long |
ByVal |
Day between 1 and 31 |
Required |
Month |
Long |
ByVal |
Month between 1 and 12 |
Required |
Year |
Long |
ByVal |
Year |
Optional |
Hour |
Long |
ByVal |
Hour between 0 and 23 (default 0) |
Optional |
Minute |
Long |
ByVal |
Minute between 0 and 59 (default 0) |
Optional |
Second |
Long |
ByVal |
Second between 0 and 59 (default 0) |