Excel converts .csv imported date field into mm/dd/yyyy format

r_kaw

New Member
Joined
Feb 15, 2010
Messages
2
I'm importing data from a comma separated text file into excel.
The date in the original text file is presented as 2010-02-02, however when it gets imported into excel as a csv file, the date's formatting changes automatically to 02/02/2010, which I think is clever and cool.

However, when I load the .csv file into another application ( A data modelling application written in C++ years ago whose source code is lost), it is able to see the data of the date field as it was in the text file and stops loading the data.

Somehow it is able to see through the cleverness of Excel and see the date data for what it was. i.e. 2010-02-02 and not 02/02/2010

If I manually overwrite that data in the date field to 02/02/2010, the application has no problem in using the data field.

So I need to have the date in the csv file to be written as 02/02/2010 overwriting the original data 2010-02-02 with 02/02/2010.

I'd manually change the date data, except I'd have close to 80 files each week to modify then.

Grateful for any ideas.....
Thanks in advance

Using Excel ver. 2003 on Windows XP.

R Kaw
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Welcome to the Board!

Since you know that Excel is converting it the way you want it, try importing it into Excel, and then re-saving the CSV file from Excel, which should convert it for you.
 
Upvote 0

Forum statistics

Threads
1,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top