Link to home
Start Free TrialLog in
Avatar of jrscherer
jrschererFlag for United States of America

asked on

Set System Date / Time with VB.Net

I need to change the system date / time in a vb.net program. Who knows a simple way to do this?
Avatar of jrscherer
jrscherer
Flag of United States of America image

ASKER

Here is a way I found through trial.

            Microsoft.VisualBasic.DateAndTime.Today = WorkingTime
            Microsoft.VisualBasic.DateAndTime.TimeOfDay = WorkingTime

WorkingTime is my new Date. Need to update Date / Time in two different statements. It seems to work.

The tooltip to Today and TimeOfDay say Get only, The Help (F1) says Get and Set.
SOLUTION
Avatar of checoo
checoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial