您的位置:首页 > 其它

(date.getYear()+" "+date.getMonth() + " " + date.getDate()+" "+date.getDay()

2015-09-23 16:27 225 查看
getYear()是返回从1900到现在的年数

getMonth()由于月份是存在数组内,所以0代表1月,11代表12月,所以返回的数值会比实际少一

getdate()返回当前月的第几天

getday()返回星期几 ,1是周一, 0是周日
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: