﻿<?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  / Need to convert date into string literal in SSIS / 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>Mon, 17 Jun 2013 23:00:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Need to convert date into string literal in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1424738-364-1.aspx</link><description>Here's another option:[code]SUBSTRING((DT_WSTR,10)(DT_DBDATE)GETDATE(),6,2) + SUBSTRING((DT_WSTR,10)(DT_DBDATE)GETDATE(),9,2) + SUBSTRING((DT_WSTR,10)(DT_DBDATE)GETDATE(),1,4)[/code]</description><pubDate>Wed, 27 Feb 2013 15:45:49 GMT</pubDate><dc:creator>kl25</dc:creator></item><item><title>RE: Need to convert date into string literal in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1424738-364-1.aspx</link><description>[quote][b]manibad (2/27/2013)[/b][hr]I need to convert date into string literal in SSIS in derived column.How is it possible.Example:Input-2013-01-07 00:00:00.000Output-07012013Please guide me in achieving this in SSIS.Thanks in advance[/quote]Just off the top of my head, try an expression like:[code="plain"]RIGHT("0" + (DT_WSTR,2)DAY(GETDATE(),2) + RIGHT("0" + (DT_WSTR,2)MONTH(GETDATE(),2) + (DT_WSTR, 4)YEAR(GETDATE())[/code]HTH,Rob</description><pubDate>Wed, 27 Feb 2013 15:00:48 GMT</pubDate><dc:creator>robert.gerald.taylor</dc:creator></item><item><title>Need to convert date into string literal in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1424738-364-1.aspx</link><description>I need to convert date into string literal in SSIS in derived column.How is it possible.Example:Input-2013-01-07 00:00:00.000Output-07012013Please guide me in achieving this in SSIS.Thanks in advance</description><pubDate>Wed, 27 Feb 2013 13:55:41 GMT</pubDate><dc:creator>manibad</dc:creator></item></channel></rss>