Microsoft® JScript® toUTCString Method |
Language Reference Version 3 |
Returns a date converted to a string using 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); }