Skip to content

SHDate.toUTCTimeString()

Returns Coordinated Universal Time (utc) as a string value.

Try it


Syntax

toUTCTimeString();

Return value

Returns Coordinated Universal Time (utc) as a string value.

Examples

Using toUTCTimeString()

var shdate = new SHDate();
console.log(shdate.toUTCString()); // "Fri, 29 Tir 1403 13:26:09 GMT"
console.log(shdate.toUTCTimeString()); // 19:45:30 GMT

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCTimeString