java.text.ParseException : 분석 할 수없는 날짜 : "2014-01-15 00 : 003 : 00"ecxception이 던지고 있습니다 내 peoblem을 shorout주세요 감사합니다 가져 오기 java.text.ParseException; 가져 오기 java.text.SimpleDateFormat; 가져 오기 java.util. *;자바에서 날짜 형식을 구문 분석하는 방법은 무엇입니까?
public class Dd {
public static void main(String args[]) throws ParseException {
String s1="2014-01-15 00:003:00";
SimpleDateFormat sdf=new SimpleDateFormat("yyyy--MM-dd h:mm:ss");
try{
Date date =sdf.parse(s1);
SimpleDateFormat sdf1=new SimpleDateFormat("dd--MMM-dd H:mm:ss");
String s3=sdf1.format(date);
System.out.println(s3);
}
catch (ParseException e) {
System.out.println(e);
}
}
}
당신은 스스로 stackoverflow에서 많은 답변을 찾을 수 있습니다. –
이 질문에 대한 답변이 많습니다. 질문이 중복되었습니다. –
친애하는 내 문제를 해결할 수 있습니다 – user3198494