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

DateFormat Trouble in SSIS

$
0
0

Hi All,

I designed SSIS package that is load data from Sql Server(Source) to Destination table(Sql Server).In that source table I have some fields as Date and time. The format of Date and Time is not same.
Please find below list of different date formats,the Date can come in any one of below formats.


01-05-12 18:19

07/12/10

14-Aug-12

08-21-2012

11-08-12 0:08

31-03-2010

27-08-12

30-Aug-12

27-AUG-12 08.48.19 AM

02-06-11

 

But I need to load data in Sql server table with YYYY-MM-DD format only.Can any one suggest how can I handle this one in SSIS.

PS. When ever the date is smaller than 12 in dd-mm-yyyy format it is treating as Month.

In below screen For Invoice ID 17 (Invoice date in DD-MM-YYYY format in Nvarchar datatype), in Source the data is available for Feb 01 when I load data in to My destination table(For Invoice date having datatype as Datetime) it shows for Month of Jan 02 that is it changes date to month and viceversa.

 


Regards, Praveen



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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