How to change the date and time of my PC using a button Only..
Help pls.. :(
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 7, 2014, 11:28 AM
I found a SO thread here showing how to do this:
http://stackoverflow.com/questions/650849/change-system-date-programatically
You'll also need to add the following 'using' directive to your file:
using System.Runtime.InteropServices;
Note that if you're using Windows Vista or later you'll need administrative privileges to call this function.
Dipankar BiswasPosted Sep 7, 2014, 5:25 AM