How to validate date string in java
<p>How to test a valid date string, assuming acceptable format is "YYYY-MM-DD"? (Y year, M month, D day)</p>

<p>I've tried <code>DateFormat.parse(date_string)</code> but it parses things like "2012-542-86".</p>
