Return to Snippet

Revision: 5250
at February 23, 2008 06:55 by multani


Initial Code
public static boolean isDateBefore(String date1,String date2){
  try{
   DateFormat df = DateFormat.getDateTimeInstance();
   return df.parse(date1).before(df.parse(date2));
  }catch(ParseException e){
   System.out.print("[SYS] " + e.getMessage());
   return false;
  }
 }

Initial URL
http://dev.csdn.net/article/68/68912.shtm

Initial Description

                                

Initial Title
Time comparation in Java

Initial Tags
java

Initial Language
Java