When I display date from phpMyadmin to webpage with this code.
date format is showing y-m-d and how to change this in d-m-y
<?php echo $row['dob']; ?>
When I display date from phpMyadmin to webpage with this code.
date format is showing y-m-d and how to change this in d-m-y
<?php echo $row['dob']; ?>
You can use DATE_FORMAT
SELECT DATE_FORMAT(column_name, '%d/%m/%Y') FROM tablename