Hi Guys,
I am having trouble converting the ISO 8601 to a unixtimestamp . Here is
what i have tried
current_ts: 2018-11-11T00:17:27.937000
Using updateAttribute, I have configured the below property
${current_ts:toDate("yyyy-MM-dd'T'HH:mm:ss.SSSSSS"):toNumber()}
This gives the Output value : 1541863984000
if converted back from epochcoverter, its giving
Assuming that this timestamp is in milliseconds:
GMT: Saturday, 10 November 2018 15:33:04
Your time zone: Sunday, 11 November 2018 00:33:04 GMT+09:00
<https://www.epochconverter.com/timezones?q=1541863984>
Relative: 22 days ago
I have also tried using ${current_ts:toDate("yyyy-MM-dd'T'HH:mm:ss.SSSSSS",
"UTC"):toNumber()} but the result is the same and its completely wrong.
Kindly help finding out correct expression.
Regards,
Faisal