473,803 Members | 3,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with date formats in international project.

I try to use MS Access application as data entry/verification tool in a
multi-centre international project, where each centre uses this
application for local project management and data collection. Regularly
the data are being unloaded , confidential information is masked, and
modified data are being sent to me for pooling and analysis.
One serious problem has emmerged recently: there are some centres where
local format for dates is yyyy-mm-dd, which is in coflict with input
mask specified for fields dd/mm/yyyy.
Does somebody have a feasible solution for this problem. I was looking
for possiblity to change local(national) settings automatically while
starting the application. However this seems to be not possible with VB.
Any other suggestions?
--
Vlad
Nov 13 '05 #1
4 4003
Vladislav Moltchanov wrote:
I try to use MS Access application as data entry/verification tool in a
multi-centre international project, where each centre uses this
application for local project management and data collection. Regularly
the data are being unloaded , confidential information is masked, and
modified data are being sent to me for pooling and analysis.
One serious problem has emmerged recently: there are some centres
where local format for dates is yyyy-mm-dd, which is in coflict with
input mask specified for fields dd/mm/yyyy.
Does somebody have a feasible solution for this problem. I was
looking for possiblity to change local(national) settings automatically
while starting the application. However this seems to be not possible
with VB. Any other suggestions?

I created a text box; Text0. Here's what I had in my AfterUpdate event
Private Sub Text0_AfterUpda te()
incIt = incIt + 1
If incIt Mod 2 = 0 Then
Me.Text0.InputM ask = "99/99/0000;0;_"
Me.Text0.Format = "mm/dd/yyyy"
Else
Me.Text0.InputM ask = "0000/99/99;0;_"
Me.Text0.Format = "yyyy/mm/dd"
End If
MsgBox Me.Text0.InputM ask & vbNewLine & Me.Text0.Format

End Sub

Maybe you can set the input mask/format in the field when the form opens.
Nov 13 '05 #2
Vladislav Moltchanov wrote:
I try to use MS Access application as data entry/verification tool in a
multi-centre international project, where each centre uses this
application for local project management and data collection. Regularly
the data are being unloaded , confidential information is masked, and
modified data are being sent to me for pooling and analysis.
One serious problem has emmerged recently: there are some centres
where local format for dates is yyyy-mm-dd, which is in coflict with
input mask specified for fields dd/mm/yyyy.
Does somebody have a feasible solution for this problem. I was
looking for possiblity to change local(national) settings automatically
while starting the application. However this seems to be not possible
with VB. Any other suggestions?


The thing to do especially in international applications is to use the
international date format yyyy-mm-dd as it's unambiguous, the input mask
dd/mm/yyyy will some accept dates entered in mm/dd/yyyy format so the
1st of April could be interpreted as the 4th of Jan. This is probably
another problem for you already whether you realise it or not.

I once thought that using medium or long dates was the answer to
international problems but was caught out when a user exported data to
another system with all the date names spelt in Turkish, the other
system didn't have a clue and rejected the whole lot (several megabytes
FTP'd over a painfully slow connection). The international format is
unambiguous and readable in all languages that I'm aware of.

--
[OO=00=OO]
Nov 13 '05 #3
I have used yyyy-mm-dd only for several years. Access, JET including
its SQL, MS-SQL, ADO, and ASP have always interpreted these correctly.
In my opinion, there is nothing for you to do.

Nov 13 '05 #4
I *always* use Clng(Datevalue) in the 'national' app
(I live in Holland and we have dateformat dd-mm-yyyy)
to make sure the dates are interpreted correctly.
If you can make sure they send the data to you in this format there is NO problem or conflict.

Arno R

"Vladislav Moltchanov" <vl************ ******@ktl.fi> schreef in bericht news:d8******** **@oxygen.ktl.f i...
I try to use MS Access application as data entry/verification tool in a
multi-centre international project, where each centre uses this
application for local project management and data collection. Regularly
the data are being unloaded , confidential information is masked, and
modified data are being sent to me for pooling and analysis.
One serious problem has emmerged recently: there are some centres where
local format for dates is yyyy-mm-dd, which is in coflict with input
mask specified for fields dd/mm/yyyy.
Does somebody have a feasible solution for this problem. I was looking
for possiblity to change local(national) settings automatically while
starting the application. However this seems to be not possible with VB.
Any other suggestions?


--
Vlad

Nov 13 '05 #5

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

Similar topics

0
1405
by: avinash | last post by:
We apologize if this is a duplicate email. EIGHTEENTH INTERNATIONAL CONFERENCE ON SYSTEMS ENGINEERING (ICSEng05) LAS VEGAS, USA, AUGUST 16-18, 2005 (http://www.icseng.info) This series of International Conferences is jointly organized on a rotational basis among three institutions, University of Nevada, Las
2
13743
by: seigo | last post by:
I use datetime condition in sql-query. For example: select something from sometable where date between '06/15/04 00:00:00' and '06/15/04 23:59:59' and result on two synchronized servers is different. In USA server result contains where date equal '06/14/04' only, but Russian server gives where date equal '06/15/04'.
36
11328
by: Martin Herrman | last post by:
Dear scripters, I am working on a HTML form in which a date must be entered of the form 'dd-mm-yyyy'. Now I'm looking for a script that, when the user switches to another form field, changes e.g. 'ddmmyyyy' or 'dd-m-yy' to 'dd-mm-yyyy'. I have searched the net using google, but only found validators that show an error if an incorrect format is used. (and I can't write one on my own) Does someone has such a script for me?
3
11584
by: Lyn | last post by:
Hi, I am developing a project in which I am checking for records with overlapping start/end dates. Record dates must not overlap date of birth, date of death, be in the future, and must not overlap existing records from the same table. I had this all working some time ago, but recently when I have gone back to do more testing, part of these validations no longer work. While there have been changes to the code in the meantime, I cannot...
5
8245
by: Daveo | last post by:
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...
8
1834
by: kevcar40 | last post by:
Hi I have a excel worksheet that contains a lot of data one on the columns is the date(formatted as short date "dd/mm/yyyy) i import this worksheet into access as a table the date field is formatted as short date problem is i cant query the dates, when i do it returns all the records. can anyone tell me how to query these dates correctly please
3
5920
by: Marauderz | last post by:
Hello guys, got a little question regarding the regional language settings . Anyway I got a Windows 2003 Server machine that was installed with the date format "dd/MM/yyyy" and location still locked in US. As we migrated certain apps over to the new machine. we found out something... someone coded a Now.ToString in a database query... and the SQL Box is running MM/dd/yyyy! Chaos follows!!! I tried setting the Administrator account's...
2
2356
by: boyleyc | last post by:
Hi all the following code works perfectly well. Basically it populates a series of check boxes on my form, depending on whether dlookup finds an associated record. The problem i have is that when the date (or xDate) goes over to the next month, dlookup returns NULL even though though there is a record. For example if CALWEEKSTART is 26/11/06 then the loop will check for
10
5825
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a date format in the table design, such as: mm/dd/yyyy? What I've done for years is to store the date format in date fields, then on the forms, based on their region, I would set the date formats on form_load
0
9562
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,...
0
10542
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10309
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10068
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
9119
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...
1
7600
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6840
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
5496
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2968
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.