Informatica中的日期格式比较 [英] Date Formats comparison in Informatica

查看:259
本文介绍了Informatica中的日期格式比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Informatica。

我有一列的字符串数据类型包含日期。我需要检查日期的格式是否为'YYYY-MM-DD'。如果是这样,则它需要返回1,否则,如果它是任何其他格式,则需要返回零。

我需要在Expression转换中执行此操作。

在此先感谢。

I have just started working on Informatica.
I have a column that is of string datatype which contains date. I need to check if the date is in the format 'YYYY-MM-DD'. If so it needs to return 1 else if it is of any other format it needs to return zero.
I need to perform this operation in the Expression transformation.
Thanks in Advance.

推荐答案



您好,
您可以使用以下功能,


Hi,
You can use the below function,

IIF(IS_DATE(date_column,'YYYY-MM-DD'),1,0)

这篇关于Informatica中的日期格式比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆