How to create a date object from Unix Epoch or a given date?

Hi Joseph,

I found the answer to my question in the example you provided in this topic: Filtering Repeater by Date Range

What I needed to do was to cast the date in millis (epoch format) using a “+0” at the end and then I could manipulate it with the Date methods for calculations that I was looking for.
The final result was something like this:

[[ (LVAR1+0).addMonths(10).toLocaleDateString(“pt-BR”) ]]
where LVAR1 was the date in epoch format (time in millis from 1970).

Thank you very much for your help!

2 Likes