Forum Discussion
pavan44
7 years agoNew Contributor III
Hi Matt,
You can try with the below expression in your mapper. Hope this helps
Date.parse(“20170617 125254”,“yyyyMMdd hhmmss”).toLocaleDateTimeString({“format”:“yyyy-MM-dd hh:mm:ss”})
The output value will be
- Matt7 years agoNew Contributor
Hey Pavan,
Thank you for the reply, I just have a quick question. If I have a input scheme for example $DATE that’s bringing in data, would I just replace “20170617 125254” with the schema?
- pavan447 years agoNew Contributor III
Yes, That’s correct.
- Matt7 years agoNew Contributor
When I insert my schema this is what I get.
Could not compile expression: Date.parse($MODDATE,“yyyyMMdd … (Reason: Invalid token: ‘“’ for expression: Date.parse($MODDATE,“yyyyMMdd …; Resolution: Please check expression syntax)