CHALLENGE! I need to convert the {shipdate} on a ...
# suitescript
d
CHALLENGE! I need to convert the {shipdate} on a transaction (in a search result field) to ISO8601 UTC date-time. Help!
b
TO_CHAR(CAST({shipdate} AS TIMESTAMP) AT TIME ZONE 'GMT', 'YYYY-MM-DD"T"HH24:MI:SS.FF3"Z"')
🙏 1
a
CAST({created} as timestamp with time zone) at time zone 'UTC'
@darrenhillconsulting Looks like @battk response is more elaborated...
b
same basic idea, cast as a timestamp
timestamps have much better formatting options
d
Brilliant! @battk wins and can take the rest of the day off!
b
does that mean you will answer all people by directing them to the help for me
d
Correct. I'm working on a standard message right now
c
Sometimes you win at suiteanswers and sometimes you lose
d
lol. Hope all you guys are well and safe!
c
I'mma keep that formula in my notes. I've never had to do what you're wanting but thats pretty handy.