title: Check if EditText input matches SimpleDateFormat Android
body: <p>I've searched a lot about this but I didn't find a way to check if a text written by the user in an EditText matches a SimpleDateFormat, is there a simple way to do that without using regex ?</p>
  
  <p>Here is my SimpleDateFormat :</p>
  
  <pre><code>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  </code></pre>
  
  <p>And I want to test if a String respects that format.</p>