Microsoft® JScript toUTCString Method |
Language Reference Version 3 |
Converts the date to a string in Universal Coordinated Time (UTC).
objDate.toUTCString()
The toUTCString method returns a String object that contains the date formatted using UTC convention in a convenient, easily readable form.The following example illustrates the use of the toUTCString method:
function toUTCStrDemo() { var d, s; d = new Date(); s = "Current setting is "; s += d.toUTCString(); return(s); }