This question already has an answer here:
- Convert one date format into another in PHP 15 answers
I am storing date in yyyy-mm-dd in database. Now i want to display that date in frontend but while displaying date it should be in dd-mm-yyyy format. How to display it in this format please help <?php echo $data2['emp_dob'];?>
. I dont want to change my current format of storing date in yyyy-mm-dd. please help me to display it in dd-mm-yyyy format only
</div>