Change system time programmaticaly using datetimepeaker
问题 I am trying to change system date and time using the following C# code. But the result is no change is occuring in systemdate(no error is thrown either). I tried by uncommenting the commented portion of the code too. But no effect. :( Afterward I tried to change time from command prompt.(not using c#) Then it showed "A required privilage is not held by the client." I know this message may not have any connection with the code, but I am adding it to make my situation clearer. [StructLayout