Results 1 to 3 of 3

Thread: Date/Time format has changed on IIS 5

  1. #1
    Join Date
    Jun 2003
    Guildford, UK

    Date/Time format has changed on IIS 5

    I recently re-installed my webserver (win2k, IIS 5.0) and the date-tmie format has changed from the British dd/mm/yy to the American mm/dd/yy. I have set the regional options to UK time and date format, but this has not helped.

    I have read somewhere that IIS uses its own format for date and time. Is this true? How can I change it to the required format?

  2. #2
    Join Date
    Aug 2003
    London, United Kingdom
    I would think that if you modify the way a date is presented using Control Panel options, Regional and Language Options,
    IIS will use that....

    So solve the problem, try to force IIS to use your locale. Here's a link on how to do that.

    Last edited by lillu; 10-10-2003 at 08:37 AM.
    You end up being who you are.

  3. #3
    Join Date
    Oct 2012

    Date/Time format has changed on IIS 5 (registry fix needed too)

    In addition to changing the local under Control Panel|Regional and Language...
    I also had to change the Registry settings:
    HKEY_USERS/.DEFAULT/Control Panel/International/sShortDate
    (use regedit from the commandline)

    In my case I needed it to change to MM/dd/yyyy
    Yours may be different.

    THEN finally things like "now()" in classic ASP appear in the format I wished.

    This also solves the problem of SQL Date out of range error...and yes I know there are proper ways to put dates into databases which don't lead to these problems...but when you inherit code...and they want you to keep the lights on...well you get the picture.

    The regedit change worked for me with IIS on XP.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center