Datetime format issue in IIS 7 server

后端 未结 3 705
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 15:15

I have hosted one of my site on IIS 7, WS2008. Later i have realize there is some datetime format issue, like me expecting things in dd/MM/yyyy format but it was in MM/dd/yy

相关标签:
3条回答
  • 2020-12-30 16:04

    After lot's of hunt i have found the solution of my problem:

    1) Change the datetime format of your server from:

    Control Panel -> Regional and Language Options -> Advanced

    2) Open IIS and follow below steps: (For IIS7)

    - Click on you Website
    - Select .NET GLOBALIZATION option
    - From Culture tab, select required Culture and UI Culture.
    - Finally iisreset.
    - Dones....
    
    0 讨论(0)
  • 2020-12-30 16:09
    1. Change the datetime format of your server from:

      Control Panel -> Regional and Language Options -> Advanced

    2. Open IIS and follow below steps: (For IIS7)

      • Click on you Website
      • Select .NET GLOBALIZATION option
      • From Culture tab, select required Culture and UI Culture.
      • Finally iisreset.
      • Dones....

    This Answer posted by Sham worked for us. We were upgrading the server and there were no changes in application or DB but after upgrade we got string format issue for date time. Above suggestion helped me...

    0 讨论(0)
  • 2020-12-30 16:18

    Change in registry entry

    regedit >> HKEY_USERS >> DEFAULT >> Control Panel >> International

    and we have changed "sLongDate" and "sShortDate" key in dd MM yyyy format

    and restart server.

    0 讨论(0)
提交回复
热议问题