Administrator 3 år sedan
förälder
incheckning
2365d52bdf
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      mhotel/src/com/happy/Until/TimeExchange.java

+ 1 - 1
mhotel/src/com/happy/Until/TimeExchange.java

@@ -410,7 +410,7 @@ public class TimeExchange {
      * @throws ParseException
      */
     public static boolean CompareDate(String dateOne, String dateTwo) throws ParseException {
-        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
+        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         Date sd1=df.parse(dateOne);
         Date sd2=df.parse(dateTwo);
         return sd1.before(sd2);