Re: date default settings on Access
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Wed, 02 May 2007 17:49:29 GMT
colmkav wrote:
thx. the windows setting which I have changed resolved them problem.
Not sure what you mean in the second part. Surely if you set the
windows settings to English dates Access will not treat dates as
English ones.
when I called dateadd("d", 1, dt). where dt is the date 1/5/2007. I
get 2/5/2007 returned. before I made this change I got 1/6/2007.
What cases does Access choose US?
As stated, when using literal date strings in queries or code.
UPDATE TableName
SET DateField = #1/9/2007#
Will result in that field being updated to January 9th 2007 regardless of
the regional settings in Windows. If you wanted September 1st you would
need to use a non-ambiguous format like...
#1-Sep-2007#
#2007-09-01#
#September 1, 2007#
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- References:
- date default settings on Access
- From: colmkav
- Re: date default settings on Access
- From: Rick Brandt
- Re: date default settings on Access
- From: colmkav
- date default settings on Access
- Prev by Date: web reports
- Next by Date: Re: Ensuring a nice clean application quit experience
- Previous by thread: Re: date default settings on Access
- Next by thread: Re: Exporting & opening the Save As Dialog Box
- Index(es):