返回使用协调通用时间 (UTC) 转换为字符串的日期。
function toUTCString() : String
toUTCString 方法返回一个 String 对象,此对象中包含了 UTC 惯例格式的日期,以一种简便、易读的形式表示。
示例下面的示例阐释了 toUTCString 方法的用法。
function toUTCStrDemo(){ var d, s; //Declare variables. d = new Date(); //Create Date object. s = "Current setting is "; s += d.toUTCString(); //Convert to UTC string. return(s); //Return UTC string. }要求