摘要: 1. Calendar和Date的转化(1) Calendar转化为Date Calendar cal=Calendar.getInstance(); Date date=cal.getTime();(2) Date转化为Calendar Date date=new Date(); Calendar cal=Calendar.getInstance(); cal.setTime(date);2. 把字符串转化为java.util.Date 方法一: String str1="1988-10-20 13:20:20"; DateFormat format1=new Simpl 阅读全文
posted @ 2011-10-12 16:41 glose 阅读(232) 评论(0) 推荐(0) 编辑