将此日期格式转换成2013-01-15 06:20:00转换为此格式2013-01-15。只需简单地删除时间日期。我用转换日期至特定格式
SimpleDateFormat dateFormat = new SimpleDateFormat(
"yyyy-mm-dd");
//Date convertedDate = new Date();
Date convertedDate = null;
try {
convertedDate = dateFormat.parse(dateString);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
如何获取或删除时间的日期。
好的答案也有效。只有两条线。大。 – URAndroid