Importing dates formatted "yyyy, mm, dd".

G

Guest

I'm experiencing problems when I try to import a date field. It's formatted:
yyyy, mm, dd (eg. "2005, 10, 07"). Is there a way to import this as a date
rather than text. And if I can't import as a date, how can I convert it to a
date once I import as text?
 
K

Ken Snell [MVP]

Import them as text initially. You then can use a query (append or update,
depending upon what you want to do) to convert to a date value (assuming
that all digits will always be in the "yyyy, mm, dd" format):

MyDateValue: DateSerial(Left([OriginalStringField], 4),
Mid([OriginalStringField], 6, 3), Right([OriginalStringField], 2))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top