Date format in JavaScript and Java
<p>I have these time formats in Java which I use to format the date:</p>

<pre><code>dd-mm-yyyy
dd-mm-rr
dd-mon-yyyy
dd-mon-rr
dd/mon/yyyy 
</code></pre>

<p>When I use these time formats with JQuery time picker I get this output:</p>

<pre><code>24-08-rr
24-08-20122012
</code></pre>

<p>Can you tell me how I can use one time format for Java and for JavaScript? How I can solve this problem?</p>
