2014-03-05 19 views

回答

4

嘗試使用簡單的日期格式,如:

SimpleDateFormat sdf = new SimpleDateFormat("ddMMyyyyhhmm");// or any date format you want 
Date date = sdf.parse(s); 
0

像這樣的事情?

String string = "date string here" 

DateTimeFormatter formatter = DateTimeFormat.forPattern("ddMMyyyyHHmm"); 
DateTime dt = formatter.parseDateTime(string); 
相關問題