You didn't specify and your example is ambiguous, but I'll assume you're talking about outputting in day-month-year format. You can use strtotime
to parse a string date into a unix timestamp, and then give that timestamp to date
along with the format that you'd like to output your date in:
date("d-m-Y", strtotime($date_from_mysql));
The manual page for date
lists all the formatting options that you can give. In this case, d
represents the day as a zero-padded number, m
represents the month as a zero-padded number, and Y
represents the year as a four digit number. Any characters that don't have a specific meaning for date
come across as-is.