Solved
Forum Discussion
j_angelevski
3 years agoContributor III
Hi @Jake_pm ,
You can use the Date.parse() function to convert the timestamp into datetime format ( MM/dd/yyyy ).
You can iterate over the array by using .map(), for example:
$time_stamp.map(val => Date.parse(val).toLocaleDateTimeString({format: "MM/dd/yyyy"}) )
Input:
[
{
"time_stamp":[
1675202216000,
1675195016011
]
}
]
Output:
[
{
"time_stamp":[
"01/31/2023",
"01/31/2023"
]
}
]