月份
一月 January
二月 Febuary
三月 March
四月 April
五月 May
六月 June
七月 July
八月 Aungust
九月 Srptember
十月 October
十一月 November
十二月 December
Date对象
初始化日期格式
new Date()
new Date(value)
new Date(dataString)
new Date(year,monthIndex[,day[,hours[,minutes[,seconds[,millseconds]]]]])
getDate() 获取当前日期对象几日
var today = new Date()
console.log(today.getDate())
console.log(d1.getDate())
console.log(d2.getDate())
console.log(d3.getDate())
getMonth() 获取当前日期对象几月
var today = new Date()
console.log(today.getMonth())
getDay() 获取当前日期对象星期几
var today = new Date()
console.log(today.getDay())
getFullYear() 获取当前日期对象的年份
var today = new Date()
console.log(today.getFullYear())
getTime() 获取当前时间戳
var today = new Date()
console.log(today.getTime())