title: check the correctness of the excel date using poi
body: <p>I am reading the excel sheet using POI which has a date column. I want to check the correctness of the date for example if the date entered in excel is 05/45/2015. Now no month has 45 days in it. I was wondering is there any built in method available.</p>
  
  <p>This didn't print <strong>invalid date</strong></p>
  
  <pre><code>if(DateUtil.isCellDateFormatted(cell))
  {
        System.out.println("cell value--&gt;"+cell.getDateCellValue());
  }
  else{
       System.out.println("invalid date");
   }
  </code></pre>
  
  <p>This code converts the date 06/45/2015 to 06/30/2015</p>
  
  <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/YYYY");
  
  String  s =  sdf.format(cell.getDateCellValue());
  System.out.println(s);
  </code></pre>
  
  <p>I don't want such conversions.</p>