iPhone Date Field - Change Date Format
<p>I have this field that asks for a date in an iPhone HTML App:</p>

<pre><code>&lt;input type="date" name="DepartureDate" id="DepartureDate" placeholder="Date" value="" class="bookingField" /&gt; 
</code></pre>

<p>This script:</p>

<pre><code>var ddate1 = $('#DepartureDate').val();
alert(ddate1);
</code></pre>

<p>returns this value: 2012-12-01 (when I select this date of course). Now can I can convert "ddate1" to look like 01/12/2012 ? </p>
