勇敢站起来快步向前冲是你唯一的出路
How to get the current year, month and date in Js? - PHP Chinese website Q&A - How to get the current year, month and date in Js? - PHP Chinese website Q&A
Take a look around and learn.
var myDate = new Date( );
myDate.getFullYear(); //获取完整的年份(4位,1970-????)
myDate.getMonth(); //获取当前月份(0-11,0代表1月)
myDate.getDate(); //获取当前日(1-31)
How to get the current year, month and date in Js? - PHP Chinese website Q&A - How to get the current year, month and date in Js? - PHP Chinese website Q&A
Take a look around and learn.
var myDate = new Date( );
myDate.getFullYear(); //获取完整的年份(4位,1970-????)
myDate.getMonth(); //获取当前月份(0-11,0代表1月)
myDate.getDate(); //获取当前日(1-31)