How to convert Unix timestamp to Wappler time format?

Hi,

I’m getting a Unix timestamp through a $_GET variable. How can I convert it to Wappler’s time format?

I’m using NodeJS. Thanks!

?timestamp=1683344056

Edit: I managed to Frankenstein something like this:

$_GET.timestamp.toNumber().dateAdd('days', 0)

If this works, you could also try formatDate. From what I recollect, I had created a custom formatter for this on server side.

Wappler either always did support it via format date, or added support for UNIX timestamp in one of the updates later.

This works for me using PHP and 6.8.0...