cancel
Showing results for 
Search instead for 
Did you mean: 

yyMMdd to yyyyMMdd

Former Member
0 Kudos

Hi Gurus,

I have no java background yet, and i have a simple requirement to convert source date format yyMMdd to target date format yyyyMMdd, do i need to create a UDF for this?

If Yes, can somebody give me the exact code for it?

Thank you in advance

Accepted Solutions (1)

Accepted Solutions (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Use DateTrans standar funtion under Date node in message Mapping, there provide the input parameter yyMMdd and the output parameter yyyyMMdd and the transformation is made.

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Under Functions tab -> Date -> Choose "DateTrans"(give ur input and output format) .

Thanks

Amit

Former Member
0 Kudos

Just use the std DateTrans function. No need of udf.. in the DateTrans put your input and output format and then map it to target..