>i need synchronize a program with mssqlserver. >i get date from server by 'select getdate()' >how can i change system date and time without using 'run date &xxx xx/xx/xx' command?
Take a look at WIN32API help file for SetSystemTime() and SystemTime().