J Joshua Moore Apr 24, 2004 #1 Does anyone know how I'd set the local computer's date/time in C#? Thanks in advance, Joshua Moore
J Joshua Moore Apr 26, 2004 #2 I receive a DateTime object from a webServer, i just need to know the commands to set the local time on the pc.
I receive a DateTime object from a webServer, i just need to know the commands to set the local time on the pc.
N nnayak Apr 27, 2004 #3 Hi, As far as I know, there is no class in .Net to do this. You have to go the unmanaged way using pInvoke I havent really tried it but you can try using the SetLocaleInfo in Kernel32. hth. Nitya
Hi, As far as I know, there is no class in .Net to do this. You have to go the unmanaged way using pInvoke I havent really tried it but you can try using the SetLocaleInfo in Kernel32. hth. Nitya