Date format on import

  • Thread starter Thread starter ptoye
  • Start date Start date
P

ptoye

How can I force the text input mechanism to use European
format rather than American format on a date? It's in a
single cell only, not an entire column. As far as I can
see, if the date is a valid mm/dd/yy date it's imported in
American format, otherwise if it's valid in dd/mm/yy
format it seems to import in European format (but I've not
tested this much).

Not much use around this time of the year! About time that
MS learned about locales IMHO.
 
Hi Ptoye,
How can I force the text input mechanism to use European
format rather than American format on a date? It's in a
single cell only, not an entire column. As far as I can
see, if the date is a valid mm/dd/yy date it's imported in
American format, otherwise if it's valid in dd/mm/yy
format it seems to import in European format (but I've not
tested this much).

If you use the Text Import Wizard, it's one of the options when
specifying the data formats. The same is available using the .OpenText
method in VBA. It's easiest to record yourself doing it to get it
right.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 

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

Similar Threads

Finding Date in an overseas format 20
System Dates 8
Need advice re: date without slashes 6
VBA in Excel 2007 date formatting 2
Date formatting 1
inputbox uk date 4
VB Date Format 8
International Date formatting 4

Back
Top