Is anyone aware of how to convert this into a read...
# suitescript
s
Is anyone aware of how to convert this into a readable date?
p
That’ll be epoch seconds
You can use
setUTCSeconds()
var jsdate = new Date(0); jsdate.setUTCSeconds( yourvalue );
Obviously strip the crap out of the value you’ve screenshotted, you just need the integer
s
or
new Date(yourvalue)
will work as long as
yourvalue
is an int and not a string
s
Thanks @PNJ @Sandii - appreciate the help! 🙂