Loading...
Loading...
Loading...
Loading...
Loading...
Example
In this example, we will pass a date time offset value to the function transformation object using a Variables object.
Where,
dateTimeOffset = 07/15/2022 10:44:28 AM +05:00
In the output window, you can see that the provided date time offset value has been converted to a date time value.
Example
In this example, we will pass a date time offset value, NOT in the current cultural format, to the function transformation object using a Variables object.
Where,
dateTimeOffset = 2020 25 JUL 11:02:09 AM +05:00
In the output window, you can see that the provided date time offset value has been converted to a date time offset value in the current cultural format.
Example
In this example, we will pass a date time string value to the function transformation object using a Variables object.
Where,
dateTimeString = 2009 10 AUG 05:09:17 PM
offsetString = 10:00
In the output window, you can see that the provided date time string value has been converted to a date time offset value, of the specified offsetString value.
Example
In this example, we will pass a date time value to the function transformation object using a Variables object.
Where,
dateTime = 07/18/2022 05:09:17 PM
offset = 4:00
In the output window, you can see that the provided date time value has been converted to a date time offset value, of the specified offset value.
Name
ToDateTimeFromDateTimeOffset
Syntax
ToDateTimeFromDateTimeOffset (DateTimeWithOffset dateTimeOffset)
Purpose
Returns date time value after conversion form a date time offset value.
Description
Converts specified date time with offset value to a date time value.
Return Type
DateTime
Parameter
dateTimeOffset [System.DateTimeOffset] – Date time with offset which will be converted to datetime
Name
ToDateTimeOffset
Syntax
ToDateTimeOffset (String dateTimeOffsetStr)
Purpose
To return the converted date time with offset using the current culture format.
Description
Converts string into a date time with offset using the current culture. Returns null if the conversion failed.
Return Type
DateTimeOffset
Parameter
dateTimeOffsetStr [System.String] – A string containing date time with offset in the local culture format
Name
ToDateTimeOffsetFromDateTime
Syntax
ToDateTimeOffsetFromDateTime (String dateTimeString, String offsetString)
Purpose
To return date time with offset value after conversion.
Description
Converts specified date time value to a date time with offset value.
Return Type
DateTimeOffset
Parameters
dateTimeString [System.String] – Date string which will be converted to datetime with offset
offsetString [System.String] – Offset which will be added to datetime with offset
Name
ToDateTimeOffsetFromDateTime
Syntax
ToDateTimeOffsetFromDateTime (Date dateTime, TimeSpan offset)
Purpose
To return date time with offset value after conversion.
Description
Converts specified date time value to a date time with offset value.
Return Type
DateTimeOffset
Parameters
dateTime [System.DateTime] – Date which will be converted to datetime with offset
offset [System.TimeSpan] – Offset which will be added to datetime with offset
Example
In this example, we will pass a date time offset value to the function transformation object using a Variables object.
Where,
dateTimeOffset = 07-18-2022 05:25:07 PM +05:00
In the output window, you can see that the provided date time offset value has been converted to its UTC date time value.
Name
ToUtc
Syntax
ToUtc (DateTimeWithOffset dateTimeOffset)
Purpose
To return UTC date time value after conversion.
Description
Converts specified date time offset value to UTC.
Return Type
DateTime
Parameter
dateTimeOffset [System.DateTimeOffset] – DateTimeOffset which will be converted to UTC