How to convert date in a format 2011-08-17 to Wed, 17 Aug 2011
we are using the following format
<input type="text" name="date1" id="date1" class="calendarSelector"
value="<?php print date("D, d M Y"); ?>" />
$day1 = $this->input->post('date1');
But value got is 2011-08-17
How to convert it using php?
Try this: