PC Review


Reply
Thread Tools Rate Thread

DB date format - Access problem LCID=2057

 
 
Mettá
Guest
Posts: n/a
 
      28th Sep 2003
I have been having problems with date fields saved to a db - the field is
either put in by hand as dd/mm/yyyy or from a date picker which completed
the field for the user via .....

All pages have <% Session.LCID=2057%> to show the UK date format and the
access db field is set to short date

Most dates save correctly but some are saving wrongly as mm/dd/yyyy
i.e. 07/10/2000 is showing as 10/07/2003 - 10th July 2003 rather than 7th
October 2003.

Can anyone suggest a cure for this very irritating problem

Thanks
M

--

http://www.MettaWeb.com



 
Reply With Quote
 
 
 
 
Jim Buyens
Guest
Posts: n/a
 
      28th Sep 2003
>-----Original Message-----
>I have been having problems with date fields saved to a
>db - the field is either put in by hand as dd/mm/yyyy or
>from a date picker which completed the field for the
>user via .....
>
>All pages have <% Session.LCID=2057%> to show the UK
>date format and the access db field is set to short date
>
>Most dates save correctly but some are saving wrongly as
>mm/dd/yyyy i.e. 07/10/2000 is showing as 10/07/2003 -
>10th July 2003 rather than 7th October 2003.
>
>Can anyone suggest a cure for this very irritating
>problem>


Session.LCID controls how dates are formatted on output,
but not how they're interpreted on input.

Generally, the best solution is to use separate fields
for month, day, and year, and to make the month field a
drop-down list with 12 alphabetic choices.

Hardly anyone misinterprets a date like 7-Oct-2003.

Jim Buyens
Microsoft FrontPage MVP
(E-Mail Removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*






Jim Buyens
Microsoft FrontPage MVP
(E-Mail Removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bluescreen 2057 LB-5 Windows XP Help 0 2nd Sep 2008 07:48 PM
Date format problem in ACCESS VBA report filter Palatini Microsoft Access 4 3rd Apr 2008 09:03 AM
Converting Date Format from YYYY-MM-DD to Access date format =?Utf-8?B?YWN0aXZlZ2lybA==?= Microsoft Access 3 21st Jun 2005 11:03 PM
Export Outlook date field as date/time format to Access database =?Utf-8?B?QmVja3k=?= Microsoft Outlook Discussion 0 2nd Dec 2004 02:49 PM
Date format problem following cut/paste from Access =?Utf-8?B?RGFuaWVsIENhcm9sbG8=?= Microsoft Excel Programming 3 15th Oct 2004 04:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.