java中Date與String的相互轉化

1:大致思路html [html]  view plain  copy 這種轉換要用到java.text.SimpleDateFormat類      字符串轉換成日期類型:   方法1:      也是最簡單的方法 Date date=new Date("2008-04-14");      方法2:      SimpleDateFormat sdf=new SimpleDateFormat(
相關文章
相關標籤/搜索