Activities

December 2009
M T W T F S S
« Nov   Jan »
 123456
78910111213
14151617181920
21222324252627
28293031  

How do I change the date format on IIS

Problem,

I need to displayed the date format on “dd/mm/yyyy” format. I have done regional setting change, restart IIS and reboot the server. Still it showing the same date format.

I used this aspx page to test whether it is working or not. File content is “<%response.write("Current date & time: "&now())%> ” still showing the older format

Solution,
1. You can find a script named “AdminAcripts” on “C:/InetPub/AdminAcripts” and edit. Replace the string

"IsSecureProperty =True"

to

""IsSecureProperty = False"

.
2. Open the command window and change directory to “C:/InetPub/AdminAcripts”.
3. We need to get the password of IIS user account and change the date settings exclusive for that user.
4. To Retrieve the IUSR Password, enter this command:

>cscript adsutil.vbs get w3svc/anonymoususerpass

Should return something like:
cmd>

anonymoususerpass : (STRING) "/FGde5hse7x"!5dI"

5. Copy the IUSR password and Open the control panel, select the Regional settings –> Press Shit key+ Right button while selecting the “Regional menu”. Then choose “Run as” option
6. Provide the IUSR name and password, then change the date format for that user profile.
USR name someting like “IUSR_Servername” ( You can get this from find users directory search or from the users list on Computer Management)

Retrive the IUSR passwords

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>