Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.getDateTimeInUTCFormat()

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use getDateTimeInUTCFormat() method to get the date and time in UTC.

Syntax

sRetVal = SFU.getDateTimeInUTCFormat(dateTime);

Parameters

Parameter

Description

dateTime

Date and Time object.

Note: The time zone from the JavaScript Date object is not considered.

Return Value

This method returns a date and time object.

Example

// Get the date and time in UTC.

var dateTime = new Date();

var dateTimeUtc = SFU.getDateTimeInUTCFormat(dateTime);

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in