Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date format on import

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Date format on import

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
permanent conversion of 1904 date format to 1900 date format Jos Excel Worksheet Functions 4 November 26th 15 02:48 PM
How to change the date format from import link? Eric Excel Discussion (Misc queries) 1 March 18th 10 06:48 AM
Date format problems after csv import YY san.[_2_] Excel Worksheet Functions 1 February 10th 10 11:36 PM
Cell format with Data Import (date appearing as text) Louise Excel Discussion (Misc queries) 3 September 21st 06 01:57 PM
Change a date in text format xx.xx.20xx to a recognised date format concatenator Excel Programming 1 November 24th 03 11:33 PM


All times are GMT +1. The time now is 04:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"