Date formating for Brits!!!

Results 1 to 4 of 4

Thread: Date formating for Brits!!!

  1. #1
    NathanB Guest

    Default Date formating for Brits!!!

    I need to make asp display my dates in dd/mm/yyyy format, and I&#039ve tried using dateformattime function with vbshortdate set, but it doesn&#039t pick up my regional date format (dd/mm/yyyy).<BR>I&#039ve checked my DB and the date is in there in the correct format...? Help!!

  2. #2
    fl1rt Guest

    Default RE: Date formating for Brits!!!

    have you tried mm/dd/yy??<BR><BR>as a fellow Brit, I had a similar problem a few weeks back as I produced a script which worked fine offline (in the UK) but incorrectly in on my host server (in the US).<BR><BR>I found that by checking for whether I was &#039offline&#039 or not, to swap the mm and dd attributes round to do the trick - it&#039s a bit of a pain, but it works!<BR><BR>fl1rt

  3. #3
    Hayden Rogers Guest

    Default RE: Date formating for Brits!!!

    Insert:<BR><BR>Session.LCID = "0809"<BR><BR>at the beginning of every page that uses date functionality. This sets the Locale to United Kingdom, ensuring that everything if formatted properly.

  4. #4
    NathanB Guest

    Default RE: Date formating for Brits!!!

    I tried it and it came back with this error...<BR><BR>SessionID error &#039ASP 0219 : 80004005&#039 <BR><BR>Invalid LCID <BR><BR>/EMAPEpisode1/Competitions/addeditcompetition2.asp, line 6 <BR><BR>The specified LCID is not available. <BR><BR>...obviously I haven&#039t set something up correctly?

Posting Permissions

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