I’m new here so I hope I’ve posted this in the right place.
I’ve recently started doing some coding, I’ve been putting together a table that’s getting data from a database and displaying it within the table.
One of the pieces of information I’m getting from the database is a date of birth. The date displays fine but it is displaying year-month-day. I would like it to display it day-month-year.
How do I do this? I’ve been told its quite awkward as there are so many different ways in which you can display a date.
Here’s my code, thanks.
echo ‘
Date of Birth: | ’;’. $row[‘dob’] .’ | ’;