Converting Java date string to JavaScript date
<p>Is there any JavaScript library that takes Java's <code>SimpleDateFormat</code> pattern and parses a date/time string into a <code>Date</code> object?</p>

<p>For example, given <code>"2010-12-20"</code> and <code>"yyyy-MM-dd"</code>, the function would parse <code>"2010-12-20"</code> and return a JavaScript <code>Date</code>.</p>

<p>I noticed that jQuery UI's Date Picker can format and parse a date string, but it doesn't work with a time string.</p>

<p>Thanks.</p>
