第1个回答 2012-04-22
DateFormat df = new SimpleDateFormat("MM/dd/yyyy");//参数为你要格式化时间日期的模式
Date date = df.parse(s);//将字符串按照定义的模式转换为Date对象
String dateStr = df.format(date);//将日期按照定义的模式转换成字符串本回答被网友采纳
第2个回答 2012-04-22
SimpleDateFormat("MM/dd/yyyy")
第3个回答 2012-04-22
DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
Date date = df.parse(s);
第4个回答 2012-04-22
你可以自己写一个date类