DateFormat dateFormat = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss");
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT+8"));
String astarttime = dateFormat.format(date);
System.out.println(astarttime);
转载于:https://my.oschina.net/meSpace/blog/102943
转载于:https://my.oschina.net/meSpace/blog/102943