将日期时间转换为SSIS中的日期

问题描述 投票:0回答:1

使用SSIS,我需要将[生日]列(目前的日期时间)转换为“日期”格式。 我使用了派生列并从 SQL Server 选择了列 [生日],格式如下: 1952-09-25 00:00:00.000

但我无法使用派生列表达式将其转换为日期。 我需要查看格式为 DD.MM.YYYY 谁能帮我表达一下吗? 谢谢

ssis
1个回答
0
投票

这是表达方式:

(DT_WSTR, 2) DAY([Birthday]) + "." + 
(DT_WSTR, 2) MONTH([Birthday]) + "." + 
(DT_WSTR, 4) YEAR([Birthday])
© www.soinside.com 2019 - 2024. All rights reserved.