Time Statement Example

This example uses the Time statement to set the computer system time to a user-defined time.

Dim MyTime
MyTime = #4:35:17 PM#    ' Assign a time.
Time = MyTime    ' Set system time to MyTime.