Friday, February 12, 2010

How to update/change system date time format in regional and language options in control panel using code ?

Hello everyone


I am looking for code in .net (vb, c#)


which helps me to change system datetime in regional options of control panel


currenlty for windows XP





all answers are appreciated





thanks in advanceHow to update/change system date time format in regional and language options in control panel using code ?
First of all, Click Start and write intl.cpl in run.





click on Date, Time, Language and Regional Options.








After clicking that, click on Change the format of numbers, dates and times.





A box will pop up, click on the Customise Button next to the drop-down menu of formats according to their country.








Another box should appear. Click on the Time tab. If your system is already running using 24 hour time, in the Time format box there should be HH:mm:ss. The two Capital H's make the clock use 24 hour. To change this, replace the Capital H's with small h's. So, you should have changed the format from HH:mm:ss to hh:mm:ss. Now, that's fine and dandy, but you might want it to say either PM or AM at the end. To make this happen, add two small t's at the end of the format. So, the format code should now be hh:mm:ss tt.





Click on OK. And now click Apply in the Regional and Language Options box, and then click OK again.





Hopefully your time in the system tray should be in 12 hour. For example, your clock should not be saying 13:00 or 16:00 anymore, but should be saying 01:00 PM or 04:00 PM respectively.





I hope that this tutorial helps!

No comments:

Post a Comment