Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling date format in EXcel on opening csv files

Status
Not open for further replies.

endeavour

MIS
Mar 29, 2001
19
US
We have an application which is outputting csv files where the dates are shown as "dd/mm/yy" with no leading zeros. So the 1st March 2001 would appear as "1/3/01". It also may output long database fields of >256 chars and containing hard returns and other special characters.

Excel is the registered application for csv files and opens them automatically. Excel handles the dates fine on some clients (UK, W2000/XL2000 and W95/XL97) but not on others (in France and Spain W95/XL97). It also handles the long text with no issues. The problem with the dates is that XL seems to be trying to bring the data in as mm/dd/yy and so some of the dates are incorrect and the rest are left as text because the are interpreted as invalid eg 25/1/01.

If we use manual import to open the files we can cure the date format but it does not parse the long fields correctly.

I thought it might be to do with regional settings (XL seems takes its default date display format from there) but the format in all three locations is dd/mm/yyyy HH:mm.

Can anyone suggest any other places in the client configuration that might control the import format used for opening csv's.
 
This is just a hunch (and only a hunch), but under Regional Options, General tab, check Your Locale, under the Language Setting for the System, see if any other countries are checked and under Input Locale tab, check to see how many languages are selected.

Indu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top