Yepp I would say it comes with milliseconds, but if you need it you can convert 
afterwards to seconds like in my example “${myDate:toDate("yyyy-MM-dd 
HH:mm:ss","UTC"):toNumber():divide(1000)}”

Cheers

From: James McMahon <[email protected]>
Reply to: "[email protected]" <[email protected]>
Date: Monday, 3 October 2022 at 22:30
To: users <[email protected]>
Subject: Is result milliseconds since epoch?

I have a string representation of a datetime parsed from a lengthy filename, 
attribute myValue with value of 20221003055959. If I convert to a true datetime 
value and then apply toNumber() to that, does toNumber() return milliseconds 
since the epoch? The expression language guide doesn’t go into too much detail.
Thank you.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to