What is the php version of this?
($year,$month,$day)=split(/-/,$date); $newdate="$month\/$day\/$year";
Hi nca,
$temparray = explode("-", $date); $year = $temparray[0]; $month = $temparray[1]; $day = $temparray[2]; $newdate = "$month/$day/$year";
Best wishes, Simon.
This would be more simple:
$newdate = date("m/d/Y",strtotime($date));
Thank you! 🙂
list($month,$day,$year) = explode('-',$date); echo $month . '/' . $day . '/' . $year;