Solved

Show data in british time format

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

15 Experts available now in Live!

Get 1:1 Help Now