0

hi guyzz.. i wanted to make a code to change my system unit date and time using vbcode.

i have a small idea, to run a command prompt but i don't no how to make it so.
any possible idea well be appreciated.

3
Contributors
3
Replies
5
Views
9 Years
Discussion Span
Last Post by loveknights07
0

you can try this. i dont know how to use command prompt for this, so i hope this is ok.

Private Sub cmd_changedate_Click()

Dim ChangeDate

ChangeDate = "October" & " " & 8 & ", " & 2008
Date = ChangeDate

End Sub


Private Sub cmd_changetime_Click()

Dim ChangeTime

ChangeTime = "9:50:50 AM"
Time = ChangeTime

End Sub
0

you can change the date and time by using the vbcode date and vbcode time,,

example:

date = text1.text

time=text2.text

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.