dates

This is a discussion on "dates" within the Classic ASP section. This forum, and the thread "dates are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 13th, 2004, 20:32
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
dates

when i input a date to be put into a database, i have to input it in american format, 12/25/04 for example, instead of 25/12/04, for ASP to recognise it as the right date. How can i make it so that i can input it as a british date?

  #2 (permalink)  
Old Sep 13th, 2004, 21:05
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
You need to set the session LCID like this:-
Code: Select all
Session.LCID = 2057 'This is the English(British) format
2057 is British Format... 1033 is USA format.

Also, if your database is access, then go into design view and specifically set the format as dd/mm/yyyy
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #3 (permalink)  
Old Sep 14th, 2004, 16:18
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
ok thanks rob
Closed Thread

Tags
dates

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP dates simonb PHP Forum 11 Sep 5th, 2007 14:30
Days between 2 Dates birdy247 JavaScript Forum 1 Apr 19th, 2007 19:55
Querying Dates Steve Mellor Databases 1 Apr 13th, 2007 14:59
printing out dates riotman Classic ASP 0 May 23rd, 2006 20:47
dates in SQL spinal007 Databases 3 Nov 10th, 2004 09:32


All times are GMT. The time now is 07:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43