首页
Java
登录
6mi
u
盘
搜
搜 索
Java
日期转化问题
日期转化问题
xiaoxiao
2021-02-28
108
1
、
SimpleDateFormat
中的
parse()
是将字符串转化为日期格式。
2
、
SimpleDateFormat
中的
format()
是将日期转化为规定好的字符串格式。
3
、日期转化为毫秒数(是从
1970
年
1
月
1
日午夜开始)
getTime()
4
、获取当前毫秒数,
Date()
其实就是相当于
Date(System.currentTimeMillis())
转载请注明原文地址: https://www.6miu.com/read-47921.html
技术
最新回复
(
0
)