DateFormat df = DateFormat.getDateInstance(); myDate = df.parse(myString); 參考:JavaWorld@TW Java論壇 - Re如何將 字串型態 轉換成 日期型態