some function about Date
来源:互联网 发布:mac管理员名称是什么 编辑:程序博客网 时间:2024/05/27 03:27
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()!
0 0
- some function about Date
- some function about TIVOLI
- some function config about IPV6
- Some functions and codes about date
- some function
- Some words about ICE...
- About some techno-words
- some links about UML
- Some tutorial about geometry
- Some videos about Avalon
- Some Tips about Interbase
- some understanding about Java
- Some words about Computer
- some about wcg
- some note about js
- some thing about JSon
- some words about "route"
- some tips about jsp
- ubuntu “下列的软件包有不能满足的依赖关系” 问题
- UVA 10723 Cyborg Genes
- UVA 242 Stamps and Envelope Size
- Spring基础(一):对Spring一无所知的童鞋请进!!!
- bzoj1222(dp)
- some function about Date
- 栈的实现
- Java并发编程:阻塞队列
- 【实践】java.lang.Integer源码分析 -- valueOf
- 注册那些事儿—交互设计总结
- 微软将重新崛起
- Android Universal-Image-Loader 解析
- Android BitmapDrawable使用场景
- 短信验证接口0818