How to set Date and time format in IIS 7

前端 未结 9 1217
春和景丽
春和景丽 2020-12-02 18:31

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

9条回答
  •  感情败类
    2020-12-02 19:13

    I was having the same problem, I just found a solution, you need to change the key on the server, follow this steps:

    • Go into Registry Editor (start -> run -> type regedit).
    • Get into the folder HKEY_USERS -> .DEFAULT -> Control Panel -> International.
    • Look for the key sShortDate, right click -> Modify...
    • Change the Value data for d/M/yyyy.
    • Log off. Then next time you log in, dates should be work as you wanted.

    That should do the trick, you can also change the sLongDate.

提交回复
热议问题