﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / SSIS convert to date issue / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 09:37:59 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>[quote][b]sqlbi.vvamsi (1/22/2013)[/b][hr]type casting that column to dt_dbtimestamp should work[/quote]Works like a charm :)thank you</description><pubDate>Wed, 23 Jan 2013 01:10:48 GMT</pubDate><dc:creator>avishain</dc:creator></item><item><title>RE: SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>type casting that column to dt_dbtimestamp should work</description><pubDate>Tue, 22 Jan 2013 11:03:53 GMT</pubDate><dc:creator>sqlbi.vvamsi</dc:creator></item><item><title>RE: SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>Here is expression you needed(DT_STR,4,1252)YEAR((DT_DBDATE)"January 22, 2008") + "-" + (DT_STR,2,1252)MONTH((DT_DBDATE)"January 22, 2008") + "-" + (DT_STR,2,1252)DAY((DT_DBDATE)"January 22, 2008")</description><pubDate>Tue, 22 Jan 2013 11:00:16 GMT</pubDate><dc:creator>quillis131</dc:creator></item><item><title>RE: SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>[quote][b]avishain (1/21/2013)[/b][hr]im developing an ssis package.while im in the sql server , there is a field that contains a text string , for example:December 13, 2008and so on...i want to convert it to 2008-12-13 00:00:00.000 or 2008-12-13 (its same for me)so, in the sql server i can do it with this statement:SELECT convert(datetime,myfiled, 107)FROM ....the question is , what is the equivalent statement to it within the SSIS 2008 ? (with derived column)thank you[/quote]Here is expression you needed(DT_STR,4,1252)YEAR((DT_DBDATE)"January 22, 2008") + "-" + (DT_STR,2,1252)MONTH((DT_DBDATE)"January 22, 2008") + "-" + (DT_STR,2,1252)DAY((DT_DBDATE)"January 22, 2008")</description><pubDate>Tue, 22 Jan 2013 10:58:58 GMT</pubDate><dc:creator>quillis131</dc:creator></item><item><title>RE: SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>the DS would be an XML file.... so i have to this within the ssis package :)</description><pubDate>Tue, 22 Jan 2013 00:30:17 GMT</pubDate><dc:creator>avishain</dc:creator></item><item><title>RE: SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>[quote][b]avishain (1/21/2013)[/b][hr]im developing an ssis package.while im in the sql server , there is a field that contains a text string , for example:December 13, 2008and so on...i want to convert it to 2008-12-13 00:00:00.000 or 2008-12-13 (its same for me)so, in the sql server i can do it with this statement:SELECT convert(datetime,myfiled, 107)FROM ....the question is , what is the equivalent statement to it within the SSIS 2008 ? (with derived column)[/quote]Why not just do it in your source SQL as you described above?  Or is the datasource not from SQL Server?If not, take a look at: [url]http://toddmcdermid.blogspot.com/2008/11/converting-strings-to-dates-in-derived.html#!/2008/11/converting-strings-to-dates-in-derived.html[/url]HTH,Rob</description><pubDate>Mon, 21 Jan 2013 13:24:46 GMT</pubDate><dc:creator>robert.gerald.taylor</dc:creator></item><item><title>SSIS convert to date issue</title><link>http://www.sqlservercentral.com/Forums/Topic1409552-364-1.aspx</link><description>im developing an ssis package.while im in the sql server , there is a field that contains a text string , for example:December 13, 2008and so on...i want to convert it to 2008-12-13 00:00:00.000 or 2008-12-13 (its same for me)so, in the sql server i can do it with this statement:SELECT convert(datetime,myfiled, 107)FROM ....the question is , what is the equivalent statement to it within the SSIS 2008 ? (with derived column)thank you</description><pubDate>Mon, 21 Jan 2013 07:40:48 GMT</pubDate><dc:creator>avishain</dc:creator></item></channel></rss>