Date Formats comparison in Informatica

大憨熊 提交于 2019-12-25 04:15:42

问题


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.


回答1:



Hi,
You can use the below function,

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



回答2:


You can use IS_DATE (input_field, 'YYYY-MM-DD')



来源:https://stackoverflow.com/questions/39828644/date-formats-comparison-in-informatica

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!