admin
2020-05-13 3b681c9fb373c6f39c8db38e37b4508bd7c3c9e1
fanli/src/main/java/com/yeshi/fanli/util/TimeUtil.java
@@ -86,11 +86,41 @@
         date = sdf.parse(st);
         return date.getTime();
      } catch (Exception e) {
         // e.printStackTrace();
          e.printStackTrace();
         return 0;
      }
   }
   public static Date parseYYYYMM(String st) {
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
      try {
         return sdf.parse(st);
      } catch (Exception e) {
          e.printStackTrace();
         return null;
      }
   }
   public static Date parseYYYYMMDD_HHMMSS(String st) {
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
      try {
         return sdf.parse(st);
      } catch (Exception e) {
          e.printStackTrace();
         return null;
      }
   }
   public static Date parseYYYYMMDD(String st) {
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
      try {
         return sdf.parse(st);
      } catch (Exception e) {
          e.printStackTrace();
         return null;
      }
   }
   public static long convertAllTimeToTemp(String st) {
      Date date = new Date();
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");