title: How to check correct date format pattern?
body: <p>I am facing issue related to date format pattern. Suppose user gives wrong input like this <code>'200000-05-16'</code> and I have format like this <code>mm/dd/yyyy</code>. I want to check format in java class the input date is wrong.</p>
  
  <p>How is it possible to do in java?</p>