1
爲什麼代碼返回字符串值是19880420而不是19880320?在Java中使用字符串轉換的Incorect日期
SimpleDateFormat template= new SimpleDateFormat("yyyyMMdd");
Calendar cal = Calendar.getInstance();
cal.set(1988, 3, 20, 18, 00);
return template.format(cal.getTime());