I have got the following dates (shown using HTML) from JSON.NET.
<span class="date"> 2013-01-01T00:00:00 </span>
<span class="date"> 2009-05-01T00:00:00 </span>
<span class="date"> 2011-01-06T00:00:00 </span>
<span class="date"> 2012-03-09T00:00:00 </span>
How can I covenrt these dates to the format 'mm-dd-yyyy'. That means, the HTML should be like this:
<span class="date"> 01-01-2013 </span>
<span class="date"> 05-01-2009 </span>
<span class="date"> 01-06-2011 </span>
<span class="date"> 03-09-2012 </span>
I tried several ways using jQuery DatePicker and DateFormat. I also got similar questions on SO. But still I coudn't figure this out. Any help will be greatly appreciated.