Solved

Show data in british time format

Posted on 2004-08-27
5
950 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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