Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: dates

  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Location
    Oxfordshire, UK
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    dates

    hi,

    i have iis running on win2k3.

    when i try to response.write date() it puts it in format mm/dd/yyyy

    i need it in dd/mm/yyyy, i have checked that the regional settings are on uk but its still in wrong format.

    Any ideas?

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    You said you made sure your server's regional settings are on UK.

    What about the LocaleID?

    Code:
    <% 
    
    session.lcid=2057
    
    response.write date()
    
    %>
    returns 11/05/2007

  • #3
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    or you can create your construct your own date format using the Date/Time and String functions or your own custom function

    http://computer-helpforum.com/asp/Da...&Submit=Submit


  •  

    Posting Permissions

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