我试图将字符串日期解析为日期,它在偏移处显示不可解析的日期。这是我的代码。
String s= "2014-07-17 10:12:00";
SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
Date current = new Date();
Date givenDate = sdfDate.parse(s);
我试图将字符串日期解析为日期,它在偏移处显示不可解析的日期。这是我的代码。
String s= "2014-07-17 10:12:00";
SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
Date current = new Date();
Date givenDate = sdfDate.parse(s);