Possible Duplicate:
Format mysql datetime with php
I have this query:
$sql="SELECT job_id,job,job2,start_date,end_date ".
"FROM pianificazione WHERE job_id='$selected_jobs'";
the end-date is in a DATE format in the database, but i need to print it in d-m-Y format Here is where i print it:
echo "<td><input type='text'id='end_date' class='datepicker' ".
"title='D-MMM-YYYY' name='end_date[$i]' value='".
$rows['end_date']. "' /></td>";
Could you please help me with this? Thanks..