Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Excel-Source outputs different date formats - leading to wrong DB values

$
0
0

Hello community,

I have Excel worksheets coming from different countries and Excel versions. My problem is a date column in the sheet.

Actually this date column causes two problems:
I know that Excel doesn't really convert cells to date values even if the cell formatting is set to it.

When I open any of the documents the date looks like this:

04.03.2014 - but in SSIS I sometimes also see this format: 3/4/2014

Those values will also convert to a date to insert into the DB but monthand day are swapped. So instead of the expected result of 04.03.2014 I'll get 03.04.2014 in the db.

Is there something I can do to handle this?

I would expect I have to use char as the Excel-source output and then do some transformation.
But how?

Thank you very much!



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>