954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

change system date and time. plss help

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.

jaasaria
Junior Poster
123 posts since Jul 2007
Reputation Points: 10
Solved Threads: 1
 

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
AUGXIS
Light Poster
45 posts since Dec 2007
Reputation Points: 11
Solved Threads: 11
 

thhhhxxx dude.. you got it... thxxx

jaasaria
Junior Poster
123 posts since Jul 2007
Reputation Points: 10
Solved Threads: 1
 

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

example:

date = text1.text

time=text2.text

loveknights07
Newbie Poster
4 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You