Converting string to Date and DateTime in PHPAt first we use$time = strtotime('10/16/2022');$customformat = date('Y-m-d',$time);echo $customformat;// 2022-10-16
No comments: