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);