打开 微信扫一扫登录
toUTCString()方法使用通用时间约定将日期转换为字符串。
语法:
Date.toUTCString ()
返回值:
使用通用时间约定将转换后的日期返回到字符串。
例:
var dateobject = new Date(1993, 6, 28, 14, 39, 7); console.log( dateobject.toUTCString() );
输出:
Wed, 28 Jul 1993 06:39:07 GMT
推荐手册