toUTCString()
此方法使用通用时间约定将日期转换为字符串。
语法 (Syntax)
Date.toUTCString ()
返回值 (Return Value)
使用通用时间约定将转换后的日期返回到字符串。
例子 (Example)
var dateobject = new Date(1993, 6, 28, 14, 39, 7);
console.log( dateobject.toUTCString() );
输出 (Output)
Wed, 28 Jul 1993 09:09:07 GMT