format_date()
format_date(string $str_date, string $time = true) : string
Turns a date string into a human readable string on the specified language. Only works for spanish, basque and english.
Parameters
| string | $str_date | Date string ('yyyy-mm-dd' or 'yyyy-mm-dd HH:MM:SS') |
| string | $time | Append the time at the end. |
Returns
string —Formatted date string.