Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 10th, 2003, 06:50 AM
Authorized User
 
Join Date: Jun 2003
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default saves wrong dateformat in Access

i save the mutationdate of a page in access in the format dd-mm-yyyy...this went good but all of a sudden in the database the format is mm-dd-yyyy (i now have both dateformats in my database which really sucks :()

when i response.write my sql statement i see the correct dateformat (so in this example 10-7-2003=10 july 2003) but in the database it saves 7-10-2003

below you see my sql statement

Quote:
quote:
update page set content = 'test', date = '10-7-2003', levelid = 2, author = 'Harold', levelnaam = 'test', deelprocesid = 0, previous = 119, next = 0 where contentId = 245
it really drives me nuts...so i would be glad if somebody could help :)

Harold
 
Old July 12th, 2003, 09:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One easy way to do it is change your computer's regional settings to somewhere that uses dd-mm-yyyy (eg Australia) if you want it that way.

Another way is to change it using DatePart to extract the parts and put them back.
eg: DatePart('m',date) & '/' & DatePart('d',date) & '/' & DatePart('yyyy',date)

Steven

There are 10 kinds of people in the world - those who understand binary - and those with friends
 
Old July 23rd, 2003, 03:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

www.adopenstatic.com/faq/DatesWithAccess.asp

www.adopenstatic.com/faq/systemDateFormat.asp

Cheers
Ken

www.adOpenStatic.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Set DateFormat kokisun Reporting Services 1 July 12th, 2006 02:13 PM
Slow saves and views rfurman1161 Access 1 March 22nd, 2006 09:30 PM
Visual Basic Editor saves only sometimes crmpicco Excel VBA 0 May 10th, 2005 08:43 AM
what is wrong with this access connection? method Access VBA 1 April 27th, 2005 01:38 PM
DateFormat Problem saravananedu Oracle ASP 2 June 8th, 2004 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.