JavaScript regular expression for java.sql.Date
<p>In my app all the dates are saved using java.util.Date format: </p>

<pre><code>YYYY-mm-DD (year, month, day)
</code></pre>

<p>So 1988-05-13 is a valid date.
So I think only digits are valid, month is [1:12], day is [1:30] 
E.g. this is a regular expression I use for my logins </p>

<pre><code>/^[a-z]([0-9a-z_])+$/i
</code></pre>

<p>Which JavaScript regular expression should I use to check this date? </p>
