How to change a format date on Windows 2003 & IIS 6.0 using ASP 2

Posted on 2009-04-24
Last Modified: 2012-05-06
Hi All:

I just installed a windows 2003 sp 2 - 64 bits, IIS 6.0, ASP.NET v2.0.50727, informix clien sdk 3.00, the Windows  is on english, also I have teh regional and languages options set to Mexico (Spanish Mexico) , If I check the date format using DATE command on CMD, the format date output is:

C:\Documents and Settings\Administrator>date
The current date is: 24/04/2009
Enter the new date: (dd-mm-yy)

and that's is correct, but when I run a programm on ASP, the format date on page is MMDDYYY.. my question is:
There are some steps or specific config to force the IIS to get the DDMMYYY format date? or Do I need configure something on Windows?
Question by:david_2911
    LVL 2

    Accepted Solution

    IIS date/time should be controlled by the OS. Is this asp code that you have written? It may be hard coded to that format. Check your asp and see if the date is displayed as a =date()  or if its something more complex like the attached.

    <% =day(now) %>/<% =month(now) %>/<% =year(now) %>

    Open in new window


    Author Comment

    the most strange thing is that same program runs in other IIS server with DDMMYYY date format, the only deference is my OS Server is on English and the other is on Spanish, the programm was created for a programmer on my company...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now