2004-07-04
字符串和日期之间的转换
将字符串直接转换为日期
[code:1](new SimpleDateFormat("yyyy-MM-dd")).parse("2003-12-21")[/code:1]
将日期直接转换为字符串
[code:1](new SimpleDateFormat("yyyy-MM-dd"))
.format((Date) dateValue).toString()[/code:1]
[code:1](new SimpleDateFormat("yyyy-MM-dd")).parse("2003-12-21")[/code:1]
将日期直接转换为字符串
[code:1](new SimpleDateFormat("yyyy-MM-dd"))
.format((Date) dateValue).toString()[/code:1]







评论排行榜