$dateStr = "January-01-1980"; $timestamp = strtotime(str_replace("-", " ",$dateStr)); echo date("d-m-y", $timestamp);
echo date("m-d-y", $timestamp);
Comment