Split DOB from MySQL table in php, follow this example code;
if your DOB pront (01-05-1992) this format then follow this code:
<?php $dob = explode('-', $data['dob']); $month = $dob[0]; $day = $dob[1]; $year = $dob[2]; echo $month."/".$day."/".$year; ?>
if your DOB pront (01/05/1992) this format then follow this code:
<?php $orderdate = explode('/', $data['dob']); $month = $dob[0]; $day = $dob[1]; $year = $dob[2]; echo $month."/".$day."/".$year; ?>
I hope it will be helpful for you. Thanks for asking here.
Question and answer is powered by AnsPress.io