Question: how to convert date in dd/mm/yyyy format in php?
Answer: Change DD-MM-YYYY to YYYY/MM/DD $orgDate = "17-07-2012"; $date = str_replace('-"', '/', $orgDate); $newDate = date("Y/m/d", strtotime($date)); echo "New date format is: ".