473,699 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unwanted American date format problem

Hi there,

I'm having a problem with my database changing the date that I enter in
the format dd/mm/yyyy into American format. Bizarrely, when enter the
date in a textbox it changes round, but if I change the format of the
textbox from short date to medium or long date, the date appears as it
is supposed to.
I also have a calendar control in another form that is linked to a date
field in a table. When you choose, say 3rd August, it appears as 8th
March in the underlying table.

All the regional settings etc are correct and everything has been
double-checked, and access is the only program this happens in.

Has anyone experienced similar?

Thanks- David

Nov 13 '05 #1
5 8236
See:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

The article explains how the interface (forms, tables, criteria in query
design) uses the Regional settings (assuming you leave the Format property),
but that literal dates in SQL statements and VBA code are interpreted as the
American format.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Daveo" <wr**********@g mail.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
Hi there,

I'm having a problem with my database changing the date that I enter in
the format dd/mm/yyyy into American format. Bizarrely, when enter the
date in a textbox it changes round, but if I change the format of the
textbox from short date to medium or long date, the date appears as it
is supposed to.
I also have a calendar control in another form that is linked to a date
field in a table. When you choose, say 3rd August, it appears as 8th
March in the underlying table.

All the regional settings etc are correct and everything has been
double-checked, and access is the only program this happens in.

Has anyone experienced similar?

Thanks- David

Nov 13 '05 #2
Hi Allen,

It appears that the problem shows on only one PC and the rest in the
office are fine an work as desired. They're all on XP Pro and Access
2000.

Thanks - David

Nov 13 '05 #3
Hi Allen,

It appears that the problem shows on only one PC and the rest in the
office are fine an work as desired. They're all on XP Pro and Access
2000.

Thanks - David

Nov 13 '05 #4
Where you have one PC acting differently than the rest, and you are certain
the regional settings (Windows Contol Panel) are the same, it would be worth
checking that it is running the same version of Office 2000 (SP3?), and
especially the same version of JET (SP8?).

Help | About will give you the Access version.

Locate msjet40.dll (typically in windows\system3 2).
Right-click and choose Properties.
On the Version tab, you should see 4.0.8xxx.0 if it is SP8.
If not, get Jet 4 update:
http://support.microsoft.com/gp/sp

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Daveo" <wr**********@g mail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .

It appears that the problem shows on only one PC and the rest in the
office are fine an work as desired. They're all on XP Pro and Access
2000.

Thanks - David

Nov 13 '05 #5
Where you have one PC acting differently than the rest, and you are certain
the regional settings (Windows Contol Panel) are the same, it would be worth
checking that it is running the same version of Office 2000 (SP3?), and
especially the same version of JET (SP8?).

Help | About will give you the Access version.

Locate msjet40.dll (typically in windows\system3 2).
Right-click and choose Properties.
On the Version tab, you should see 4.0.8xxx.0 if it is SP8.
If not, get Jet 4 update:
http://support.microsoft.com/gp/sp

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Daveo" <wr**********@g mail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .

It appears that the problem shows on only one PC and the rest in the
office are fine an work as desired. They're all on XP Pro and Access
2000.

Thanks - David

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2674
by: Ian | last post by:
I have a problem I hope someone can point out where I am going wrong. I need to store a date/time in a cookie ( ie the date a visitor last visited ) However the date format changes to US, despite LCID being set to UK. I have googled extensively but can't work it out. This is my code to give write the current date/time to screen: <% Session.LCID = 2057 Response.Write Now() & "<br>" &
2
353
by: Greg | last post by:
Isn't the following date format supposed to work with any installation of MySQL? YYYY-MM-DD HH:NN:SS It's not working on one system... the date is shown as all zero's.
8
2245
by: Ishbel Kargar | last post by:
Since upgrading from old laptop (Windows 98) to new laptop (Windows XP), my mail-merge letters are doing strange things with date formats. For instance, my reminder letter for lapsed subs carries the 'expiry' date as a merge field from the database, and this previously was shown as dd/mm/yy (UK format). Now it persists in showing as mm/dd/yy. I've gone to the Windows Control Panel and made sure that my Regional settings show UK format,...
9
319
by: Coleen | last post by:
Hi all :-) I have a bit of code that chacks for the last day of the Month, and if it falls on a week-end, sets the due date to the Monday after... I'm trying to get the date to go to the Tuesday afterward, if the last day of the month falls on the week-end and the Monday afterwards is a holiday... to test I set the date to 11/30/2006, to make the due date fall on 12/31/2006 which is a Sunday and makes 1/1/2007 a holiday. I've put in the...
1
1713
by: zsolt | last post by:
Hi, I'm trying to convert a string to date by specifying the format. The value is like this: "03rd of April 2006". Now this is converted fine by using the following format: "dd\r\d \o\f MMMM yyyy". The problem is of course that the string can be 01st of..., 04th of etc., meaning that I can't use the "\r\d" format description for all possible values.
7
4280
by: mewanalwis | last post by:
Dear Friends, I have a rather strange problem which invloves SQL server and ASP. The problem is this. I have an ASP application which use a SQL server. it saves date values with MM/dd/yyyy format. the SQL server and every other computer is configured to MM/dd/yyyy format in reginol settings. The DSN which use to connect to SQL server is configured to use Reginol settings date
1
1635
by: cableguy69 | last post by:
Hello There. I am programming with visual basic within the Excel realm. I have a problem with the way my selected textbox recognizes dates generated from the datepicker. I am from New Zealand and have set me PC regional settings accordingly. Our date format is 26 October 2006, 26/10/06. I have formatted the textbox with the following code:
1
3126
by: nagi28 | last post by:
Hi All, I am executing a select query which involve join between three tables through jdbc. I am using MS-ACCESS as database. This query needs to get the data based on some conditions on date fields. While executing the query I am getting Data type mismatch in criteria expression. I found where the problem is but i don't know how to solve. Problem is in date format. where TT.ARRIVED between '2007-07-01 00:00:00' and '2007-07-30...
1
4039
by: Maciej07 | last post by:
Hello, We are using SQL server 2000 on W2k Server and MS Access 2000 ADP (like front-end). Now we try to change operating system for SQL Server 2000 from W2k to W2k3 and we found problem with date format - we receive error: "Cannot convert date type varchar to datetime". Datetime used in application are sent to SQL Server 2000 in format YYYY-MM-DD as varchar. (in Query Analyzer all view/query works fine but when application sends it...
0
8620
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8920
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8887
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7755
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3060
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2351
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2012
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.