Get date format in DB2 as expression in SSIS

  • hi,

    I am working on a ssis package ,where I have date parameters as format below

    "2015-09-01-00.00.00.000000"

    Can anyone please help me to get this date format in TSQl expression in SSIS package?

  • Hi Komal,

    Is it just date format or date and time?

    Example 1

    You could left trim the string.

    Left('2015-09-01-00.00.00.000000',10)

    To get just the date,

    Then to get a date format

    Convert(date time,Left(2015-09-01-00.00.00.000000",10),103)

    Dave

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

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