Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 May 14th, 2004, 08:41 AM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO COleDateTime and day <= 12

Hi All,
I actually encounter a problem when storing COleDatetime in an Access97 database, when the COleDateTime day is <= 12, the day and month are swapped when I look at the record newly inserted in the database, but when the day is >= 13, all is ok. I searched to find a solution, it seems that the regional settings available in the control panel or via the SetLocaleInfo win32 sdk can solde the solution, provided that you set the short date format to MM/dd/yyyy, but I NEED to keep this parameter to dd/MM/yyyy because of displayed dates ...
So also tried modifying the Locale Identifier keyword available in the Connection String setting it to 1036 (France) instead of 1033 (USA), but then problem is still there.

If possible, I would like not to modify the locale setting everytile I insert or update dates, setting locale back to the previous value, it seems heavy and not very nice.

Does someone knows a solution







Similar Threads
Thread Thread Starter Forum Replies Last Post
want to convert date from 01/12/07 to 12-Jan-2007 hurperl Perl 1 April 12th, 2007 05:47 AM
ADO - SELECT FROM [Tablename] WHERE [MyDate] < ... Fabietto Excel VBA 1 February 23rd, 2007 01:31 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM
Where can i download <<Fast Track ADO.NET C! Editi liuxiao_lx123 Wrox Book Feedback 1 June 21st, 2004 09:26 AM
day to day use of XML mano XML 1 November 27th, 2003 01:39 AM





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