Re: Access, ASP, DATE problems!
- From: "Neil" <neil@xxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 23:21:41 +0100
Thanks for the reply
Yes I am using the JET engine.
One of your links says
"In all versions of Access (including the 16-bit versions), JET SQL clauses
require dates in American format. To demonstrate this, enter any date in the
Criteria row under a date field in Query Design, and then switch to SQL
View. In Query Design view, you see the date according to your local
settings, but the SQL statement uses mm/dd/yy format."
My code is successfully submitting dates (they appear in Access as
xx-MMMM-YY, i.e. if the date is submitted as 1/8/05 then access reports it
as 1-AUG-05, which is correct) but when I read them back through code they
are wrong (i.e. 8-Jan-05). What do I use in my VB code to read them correct?
I am really confused by all this!
"RoyVidar" <roy_vidarNOSPAM@xxxxxxxx> wrote in message
news:mn.d0077d5776039455.33955@xxxxxxxxxxx
> Neil wrote in message <dc3n93$2vq$1@xxxxxxxxxxxxxxxxxxxx> :
>> I have been coding with ASP for some time now. I am using an ACCESS
>> database. I am in the UK and wish to use DD/MM/YYYY format for dates.
>>
>> I have had no end of problems and possible solutions to dates such as
>> 1/8/05
>> being interpreted in the wrong way.
>>
>> I have been given many suggestions (setting LCID, submitting dates in
>> long
>> format etc. etc.)
>>
>> Is there any definitive sloution or tutorial available? This is driving
>> me
>> MAD!
>>
>> I can get dates submitted OK but they get read back wrong. I alter the
>> code
>> and then they are submited wrong but read OK from the database.
>>
>> Someone please help!!!!!!!!!!!!!!!!
>>
>>
>> Neil
>
> Dates are stored as numbers, and displayed as dates. I'm assuming
> you are communicating with the Jet engine through dynamic sql, which
> is probably the only time this causes challenges, cause the Jet engine
> needs the string representation of the date in an unambiguous format
> to be able to determine whether 01/08/2005 is Aug 1 or Jan 8.
>
> You will find some more info/suggestions here
> http://allenbrowne.com/ser-36.html
> http://www.mvps.org/access/datetime/date0005.htm
>
> --
> Roy-Vidar
>
.
- Follow-Ups:
- Re: Access, ASP, DATE problems!
- From: RoyVidar
- Re: Access, ASP, DATE problems!
- References:
- Access, ASP, DATE problems!
- From: Neil
- Re: Access, ASP, DATE problems!
- From: RoyVidar
- Access, ASP, DATE problems!
- Prev by Date: Problem with limit on maximum number of textboxes on a form or report in MS-Access
- Next by Date: Re: Problem with limit on maximum number of textboxes on a form or report in MS-Access
- Previous by thread: Re: Access, ASP, DATE problems!
- Next by thread: Re: Access, ASP, DATE problems!
- Index(es):
Relevant Pages
|