"text/javascript"> function NewDate(str) { str = str.split('-'); var date = new Date(); date.setUTCFullYear
script type="text/javascript"> function NewDate(str) { str = str.split('-'); var date = new Date(); date.setUTCFullYear
NewDate(str) { str = str.split('-'); var date = new Date(); date.setUTCFullYear
在页脚选择合适的位置加入: function NewDate(str) { str = str.split('-'); var date = new Date(); date.setUTCFullYear
date.setUTCDate(1); console.log(date.toUTCString()); // Thu, 01 Oct 2020 10:15:30 GMT Date.prototype.setUTCFullYear...() dateObj.setUTCFullYear(yearValue[, monthValue[, dayValue]]) setUTCFullYear()方法根据世界标准时间为一个具体日期设置年份...var date = new Date("2020-10-18 10:15:30 GMT"); date.setUTCFullYear(2019); console.log(date.toUTCString
setUTCFullYear() 根据世界时设置 Date 对象中的年份(四位数字)。 setUTCHours() 根据世界时设置 Date 对象中的小时 (0 ~ 23)。
output: 1976 console.log(event.toUTCString()); // expected output: Thu, 01 Jan 1976 02:15:30 GMT event.setUTCFullYear
const date = new Date('July 22, 2018 07:22:13') date.setUTCDate(newalue) date.setUTCDay(newValue) date.setUTCFullYear
sort Date setFullYear, setMonth, setDate, setHours, setMinutes, setSeconds, setMilliseconds, setTime, setUTCFullYear
Date.prototype.getUTCSeconds() Date.prototype.getUTCMilliseconds() Date.prototype.toUTCString() Date.prototype.setUTCFullYear
1483599203000); console.log(date1); //下面这些方法设置时间时间 date1.setUTCDate(3); date1.setUTCMonth(10); date1.setUTCFullYear
Date(t).toUTCString());) 修改和获取Date对象属性 getTime / setTime getFullYear / setFullYear / getUTCFullYear /setUTCFullYear
setMember setMilliseconds setMinutes setMonth setResizable setSeconds setSlot setTime setTimeout setUTCDate setUTCFullYear
领取专属 10元无门槛券
手把手带您无忧上云