on-internet
← Community

Converting DD-MON-YY to YYYY-MM-DD in informatica

Stack Overflow ·

I have a date column in a flat file with a format of DD-Mon-YY which needs to be converted to YYYY-MM-DD. This is the expression which I have used in the expression transformation IIF(IS_DATE(Event_Date,'DD-MON-YY'),TO_DATE(Event_Date,'YYYY-MM-DD'),NULL) There's an error saying invalid string format due to the reason that there's no century (26-Sep-16) information in the input date. Help would be appreciated. Thanks.

Comments

Sign in or sign up to comment and upvote.

No comments yet.