The Date and Time app has 7 actions. I suggest adding two to easily convert Unix and Javascript timestamps.
My use case:
I’m exporting Zillow API data and all the listing date/times and change date/times are in Unix Time Stamp (aka milliseconds) Example: listingDateTimeOnZillow: 1699724220000.
I think it would be beneficial to add this because:
Having this to convert to mm/dd/yyyy or any other format needed would help us not have to implement a code block with javascript to process such a remedial task.
Hey @Jon , thanks for all the help quick question for you. Is there a way to pass multiple date fields (perhaps like search for all of them) and have the modification done?
check my mini help to find modification to your needs
if $json.body.listingDateTimeOnZillow is unix miliseconds
{{DateTime.fromSeconds($json.body.listingDateTimeOnZillow/1000).toFormat(‘yyyy-MM-dd HH:mm:ss’)}}
// Output: 2023-10-13 17:23:58
It is kind of already there and is easy enought to do, It can also be done with Luxon in expressions but while I personally don’t think we need this if the community vote for this then it would be something to add.