How to change only Date value in DATE TIME datatype in SSIS

  • I need to change date field to default 01 in DATE TIME data type holding same month value.
    current value 05/29/2016 - 05/01/2016
    current value 06/19/2017 - 06/01/2017

  • Try something like this

    DATEADD( "d", -1 * DATEPART( "d", GETDATE() )+1 , GETDATE() )

    Replace GETDATE() with your variable name.


  • Data is coming from flat file so I can't use Sql functions.Please suggest on Derived expression or Script task

  • subratnayak09 - Monday, June 19, 2017 1:28 PM

    Data is coming from flat file so I can't use Sql functions.Please suggest on Derived expression or Script task

    Please check again. Those are SSIS functions. They will work in a derived column transformation.


  • Provided solution working fine . Thanks a lot for your help.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply