some function about Date
2016-08-18 23:36
288 查看
1:getTime()
Grammar:dateObject.getTime()
This function returns the number of milliseconds from 1970.1.1 00:00:00.000 to today.
2:getFullYear()
Grammar:dateObject.getFullYear()
This function returns the year which is combined with four digits.
3:getMonth()
Grammar:dateObject.getMonth()
This function returns month,especially the return value is taken between 0 and 11.So you need add one to the month you get by using this function to get the correct month.
4:getDate()
Grammar:dateObject.getDate()
This function returns one day in a month.
5:getDay()
Grammar:dateObject.getDay()
This function returns one day in a week.
Attention:Sometimes we may misuse function getDay() instead of getDate()!
Grammar:dateObject.getTime()
This function returns the number of milliseconds from 1970.1.1 00:00:00.000 to today.
2:getFullYear()
Grammar:dateObject.getFullYear()
This function returns the year which is combined with four digits.
3:getMonth()
Grammar:dateObject.getMonth()
This function returns month,especially the return value is taken between 0 and 11.So you need add one to the month you get by using this function to get the correct month.
4:getDate()
Grammar:dateObject.getDate()
This function returns one day in a month.
5:getDay()
Grammar:dateObject.getDay()
This function returns one day in a week.
Attention:Sometimes we may misuse function getDay() instead of getDate()!
相关文章推荐
- some function about the GW ip address in the MS system
- Some functions and codes about date
- some function about TIVOLI
- some function config about IPV6
- Some about JBOSS dir
- EXT核心API详解(二)-Array/Date/Function/Number/String
- Some lines about EF Code First migration.
- C/C++:__LINE__;__FILE__;__DATE__;__TIME__;__FUNCTION__等
- JavaScript之window.onload = somefunction 笔记
- Some tips about python Seven
- Some basic tips about 'git stash'
- about wait and waipid function of GNU
- An problem about date(数学 )
- Some thing about Lambda Expression and NHB
- Some Sites About .Net
- Some thoughts about how to learn english well
- Some question about translation
- JS中return SomeFunction和不加return的区别
- Some web site about Network security
- memory about static data member and static member function