code: public static String getDateStr(Date date) {
          java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
          return sdf.format(date);
      }
docs: 返回指定格式的时间字符串：yyyy-MM-dd HH:mm:ss
  
  @param date
  
  @return
  
  @throws :12:32