Solved

Show data in british time format

Posted on 2004-08-27
5
951 Views
Last Modified: 2008-02-01
I am hosting my site on an american host and i need to display dates in british data format but it wont, any ideas?  Also i dont know if this has anything to do with it but when i insert dates into the database (access 2000) it gives me a ramdom data and a time also - why?
0
Comment
Question by:Harley84
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 23

Expert Comment

by:apresto
ID: 11916038
%Session.LCID = 2057%>.

Put this in your code to display british dates
0
 
LVL 23

Accepted Solution

by:
apresto earned 200 total points
ID: 11916048
only with an opening <, sorry

As far as your insertion goes, make sure that the input mask of the database is set to the format you want (Short, Medium or long date),  otherwise when you insert a data it will also insert the time as you need to specify,
0
 
LVL 23

Expert Comment

by:apresto
ID: 11916062
Are you using a combo drop down to insert dates or a calendar, or are you manually typing them in?
0
 
LVL 31

Expert Comment

by:alorentz
ID: 11916077
Show daata with this:

Function formatToUK(v)
     formatToUK= day(v) & "/" & month(v) & "/" & year(v)
End function


Put in DB with this:

Function formatToUS(v)
     formatToUS= month(v) & "/" & day(v) & "/" & year(v)
End function
 
0
 

Author Comment

by:Harley84
ID: 11916080
Problem solved, thanks alot.  You were right i hadnt specified the input mask, thats all it was, its works as its supposed to now - thanks dude!
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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