Converting the Date to UTC Format

Hi,
I have a Date Component in the perspective and whenever I am saving the Date to database it was adding some extra hours and saving it. So, I thought to convert the Date to UTC Format and then upload to Database.
So is there any options or scripts in perspective to convert the date into UTC Format.

Thanks in advance

To convert a Date to a UTC timestamp in milliseconds, use system.date.toMillis: system.date.toMillis - Ignition User Manual 8.1 - Ignition Documentation