Convert Date into UTC format in perspective

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?

@Kevin.Herron

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