Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
08-10-2022
04:11 PM
- last edited on
04-21-2026
12:51 AM
by
GrazittiAPI
Hello, please kindly help. i am trying to convert a datetime(attribute) from one format to the other but it keeps giving me empty value on the attribute:
SCENERIO:
Flowfile is json----->extract date from Json flowfile using Evaluatejsonpath---->format date using Updateattribute
Actual Date: "2022-08-01 00:00:00.0"
Desired date: "01/08/2022 00:00:00.000000"
I have tried to use this on the updateattribute, but it is not working:
${DATE_TIME:toNumber():toDate('yyyy-MM-dd hh:mm:ss.S'):format('dd/MM/yyyy HH:mm:ss.SSSSSS')}
Thank you.
Created 08-11-2022 03:58 AM
Try this:
${DATE_TIME:toDate('yyyy-MM-dd HH:mm:ss.SSSSSSSSS'):format('dd/MM/yyyy HH:mm:ss.SSSSSS')}
Cheers,
André
Created 08-11-2022 03:58 AM
Try this:
${DATE_TIME:toDate('yyyy-MM-dd HH:mm:ss.SSSSSSSSS'):format('dd/MM/yyyy HH:mm:ss.SSSSSS')}
Cheers,
André
Created 08-11-2022 05:16 AM
Thank you sir. It works.