一、String To Date:
java
java.util.Date date1 = new java.text.SimpleDateFormat("yyyy-MM-dd").parse("2016-02-02");
java.util.Date date2 = org.apache.commons.lang3.time.DateUtils.parseDate("2016-02-02", "yyyy-MM-dd HH:mm:ss");
二、Date To String:apache
String dateStr = org.apache.commons.lang3.time.DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss");