2个回答
展开全部
String s = "03/03 00:00";
SimpleDateFormat sdf = new SimpleDateFormat("M/d HH:mm");
try {
Date d1 = sdf.parse(s);
String formatDate = sdf.format(d1);
System.out.println(formatDate);
} catch (Exception e) {
e.printStackTrace();
}
SimpleDateFormat sdf = new SimpleDateFormat("M/d HH:mm");
try {
Date d1 = sdf.parse(s);
String formatDate = sdf.format(d1);
System.out.println(formatDate);
} catch (Exception e) {
e.printStackTrace();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询