简体   繁体   中英

Date Formats comparison in Informatica

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.

您可以使用IS_DATE (input_field, 'YYYY-MM-DD')


Hi,
You can use the below function,

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM