-1
A
回答
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);
相關問題
- 1. 將字符串轉換爲特定的日期時間格式?
- 2. 將字符串轉換爲Javascript中的日期時間格式
- 3. 如何將日期的轉換格式指定爲字符串
- 4. 將字符串轉換爲yyyymmdd格式的日期時間
- 5. 將字符串轉換爲日期時間格式的問題
- 6. 將字符串中的日期轉換爲格式相同的日期時間
- 7. 將日期時間轉換爲c#中指定的格式?
- 8. 如何將字符串轉換爲java中的日期格式?
- 9. 將自定義日期格式(字符串)轉換爲日期時間
- 10. 將字符串轉換爲日期時間格式無效System.Datetime
- 11. 格式日期時間沒有將其轉換爲字符串
- 12. 將日期字符串轉換爲utc時間格式javascript
- 13. 如何將字符串轉換爲mysql日期時間格式?
- 14. 將字符串轉換爲日期時間格式
- 15. 如何將日期時間字符串轉換爲sql格式?
- 16. 將SQL日期時間格式轉換爲字符串
- 17. 將字符串轉換爲日期時間格式
- 18. 將字符串轉換爲日期時間格式
- 19. 字符串轉換爲日期時間以特定格式
- 20. 將時間字符串轉換爲c#中的不同日期時間格式
- 21. 將日期字符串轉換爲SSIS中的日期時間
- 22. 如何將字符串轉換爲c#中的特定日期時間格式?
- 23. 將字符串轉換爲Java中的日期格式的字符串?
- 24. 將不同語言的日期字符串轉換爲日期時間格式
- 25. 如何在python中將字符串日期轉換爲日期時間格式?
- 26. 將字符串日期時間轉換爲Ruby日期時間
- 27. 將日期時間字符串轉換爲日期時間
- 28. 如何將日期時間從字符串格式轉換爲pyspark中的日期時間格式?
- 29. 轉換字符串GMT格式的日期時間格式
- 30. 如何字符串轉換爲日期時間格式的Mysql
聽說過SimpleDateFormat嗎? – ItachiUchiha
你的意思是jodatime'DateTime'? –