<?php $dmy = "20-12-2013"; list($day, $month, $year) = explode("-", $dmy); $ymd = "$year-$month-$day"; echo $ymd;
You have javascript disabled. You will not be able to edit any code.