title: Validate a simple time date format ? (yyyy-MM-dd'T'HH:mm:ss)
body: <p>I'm going to validate a simple time date format (<code>yyyy-MM-dd'T'HH:mm:ss</code>) as follows. This implementation works for most major validations but somehow I found some validations doesn't seems to be working.
  such as if you enter <code>2014-09-11T03:27:54kanmsdklnasd</code> , <code>2014-09-11T03:27:54234243</code> it doesn't validate. Can you please point out my code error?</p>
  
  <p><strong>code</strong></p>
  
  <pre><code>String timestamp = "2014-09-11T03:27:54";
  SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
  try{
      format.parse(timestamp);
      LOG.info("Timestamp is a valid format");
  }
  catch(ParseException e)
  {
      return ssoResponse;
  }
  </code></pre>