I have a project requirement. There are values in a .txt as -
02/01/2017 00:00:00
Now I need to have some rules to check if this value in the
Use this to check date
String sDate1="31/12/1998 00:00:00"; try{ Date date1=new SimpleDateFormat("dd/MM/yyyy hh:mm:ss").parse(sDate1); ` } catch(Exception e) { //Not a date.. }