Date Formatting Question

BLT1976

Registered User.
Local time
Today, 22:29
Joined
Sep 13, 2002
Messages
21
I have searched past questions and could not find any answers to the following. When we imported data from another Dbase (not Access) into our Access DB, the date field came out "yyyymmdd". I have added "0000/00/00" to the input mask which provides it the necessary "/". However, I really need the information to read "mm/dd/yyyy".

The field in the main table is currently text. When I switch to Date/Time and try to ask it to format as "Short Date", it deletes all the Date of Births in that field.

Any suggestions on how I can convert this data?

Brandon
 
This seems clumsy but it should work:

CDate(Mid(YourDateValue,5,2) & "/" & Mid(YourDateValue,7,2) & "/" & Left(YourDateValue,4))

To use this ALL of the values must come in in the yyyymmdd format.

HTH
 
THANKS!

I don't care that it's CLUMSY, it WORKED! Thanks a bunch.

Brandon
 

Users who are viewing this thread

Back
Top Bottom