i need to change the - of the date into / in $myDate1 . here is my code but its not working. also i need to insert / in the $myDate2 variable.
$myDate1 = "06-20-2014";
$myDate2 = "06202014";
$newDate1 = date("m/d/Y", strtotime($myDate1));
$newDate2 = date("m/d/Y", strtotime($myDate2));
echo $newDate1;
echo $newDate2;
thanks