How to set Date and time format in IIS 7

Viewed 100461

I have date format in my local machine : (d/M/yyyy h:mm tt) ==> (23/6/2011 4:30 PM)

when i publish my website on IIS server it converts date format to (M/d/yyyy H:mm)

i changed the date and time formats of the server but it's not affected . i changed the culture of the website to English US time format solved but date not. (M/d/yyyy hh:mm tt) i changed the culture of the website to English UK date format solved but time not. (d/MM/yyyy H:mm)

what is the solution to make it's format like my local format ???!!!

9 Answers
  1. Change your system short date and log date format as desired.
  2. Check app pool of your application in IIS.
  3. Go to Application pools section of IIS and change Identity of that pool to local system(because your desired date format you have set is in your local system)
  4. Restart your app in IIS

If you have changed you system date format and Clicked on Copy Settings to ALl User accounts and still your new format not getting applied to IIS hosted WebProject.Than you must try to go to APplication Pool Idnetity and Change the User Account and then again try to copy settings to All User accounts. Get reference from here it worked for me How to Set date and time format in IIS

Related