Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I've my input field of string type that stores date in YYYYMMDD format. I want to convert it to date type keeping the format same.
I tried using following expression in tmap expression editor but it always gives me output date in standard format instead of desired format (YYYYMMDD).
TalendDate.parseDate("YYYYMMDD", row2.source_date)
Another issue is it is giving me a constant date - Sun Dec 27 00:00:00 CST 2015 even if I give below expression which should ideally give me current date in the output of date type in format YYYYMMDD.
TalendDate.parseDate("YYYYMMDD",TalendDate.getDate("YYYYMMDD"))
Please could someone provide inputs on this issue.
Thanks!