Solved

Show data in british time format

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

937 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

16 Experts available now in Live!

Get 1:1 Help Now