Hello,
I am using Nifi to pull values from sensors & store it to a database. How to convert a timestamp of regular time to UTC timestamp?
attribute name - timestamp
value now - 2019-06-17 14:46:18.370
value desired- 2019-06-17T14:46:18.370Z
I tried formatting date in UpdateAttribute processor but it didn't work -
$(timestamp:toDate("yyyy-MM-dd hh:mm:ss.ttt"):format("yyyy-mm-ddThh:mm:ss.tttZ"))
I appreciate your answers. Thanks.