I try to do it this way but the date change does not work for me, if someone can help me
$originalDate = "19/10/2022";
$timestamp = strtotime($originalDate);
$newDate = date("Y-m-d", $timestamp );
echo $newDate;
I try to do it this way but the date change does not work for me, if someone can help me
$originalDate = "19/10/2022";
$timestamp = strtotime($originalDate);
$newDate = date("Y-m-d", $timestamp );
echo $newDate;