I want to convert date to UTC Format(2022-03-30T19:43:30.00Z) after selection of a date in dateTimeInput component in perspective. How can this be achieved..
There are date formatting expressions and scripting functions. What are you trying to do with the UTC formatted date?
I am using a standard tag query and then converrting it to a csv
dataset = system.tag.queryTagHistory()
csv = system.dataset.toCSV(dataset = dataset , showHeaders = True, forExport = False)
How can I format the timestamps to use UTC, the toCSV saves them as local timezone.
Thanks in advanced
I know this is very old, but if anyone else stumbles across this:
system.date.now().toInstant().toString()
This works on any java.util.Date
1 Like