ToUtc (Date dateTime)

Name

ToUtc

Syntax

ToUtc (Date dateTime)

Purpose

To convert a specified date time value to UTC.

Description

Returns UTC date time value after conversion.

Return Type

DateTime

Parameter

dateTime [System.DateTime] – Date which will be converted to UTC

Example

In this example, we will pass a valid date time value to the function transformation object using a Variables object.

Where,

dateTime ­= 08/06/2018 10:20:40 AM

In the output window, you can see that the provided date time value has been converted into a UTC date time value.

Last updated

© Copyright 2023, Astera Software