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

Convert ssis datetime variable value

$
0
0

Hi,

I have created one variable name migration_start datetime
which give me default format of 6/11/2015 1:26 AM

But I expecting to get in 2015-06-11 01:26:22.813 format.

I have used below expression betting getting issue with that


(DT_STR, 4, 1252) DATEPART("yyyy" , @[User::migration_start]) + "-" + RIGHT("0" + (DT_STR, 2, 1252) DATEPART("mm" , @[User::migration_start]), 2) + "-" + RIGHT("0" + (DT_STR, 2, 1252) DATEPART("dd" , @[User::migration_start]), 2)

kindly suggest me the expression.

Regards,
Vipin jha


Thankx & regards, Vipin jha MCP


Viewing all articles
Browse latest Browse all 24688

Trending Articles