I have an access database given to me where all the dates are stored in a text
field in the format mm/dd (eg: 3/13/2009 12:20:36 AM)
I want to convert the field to a date/time but access formats it as dd/mm which
makes it so that if the day is bigger then 12 or not the converted date might
be wrong.
Example with the current format when stored as text in the DB:
3/12/2009 11:32:40 PM 3/13/2009 11:32:40 PM
If I simply convert the data type of this field from the design view
of the table from text to date/time date type I get the following:
03/12/2009 11:32:40 PM 13/03/2009 11:32:40 PM
How would I go about fixing the stored values?
I don’t care much about the format the dates will be showing in as I’ll be able
to easily change how it looks but getting them to convert properly from text to
date/time has proven to be tricky.
Preferable I’d like to fix it from access directly but I can do it from C# if needed.
Thanks.
If this is a local Access application, it uses your system’s date time format, so changing your localization settings in Windows to use MM/DD will make Access convert that way, unless this has been overridden somewhere in the app.