Administrator %!s(int64=3) %!d(string=hai) anos
pai
achega
2365d52bdf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);