eo_format_date
since 1.2.0
eo_format_date( $dateString = '', $format = 'd-m-Y' )
Formats a date string in the format 'YYYY-MM-DD H:i:s' format or even relative strings like 'today' into a specified format.
Parameters
string
|
$dateString = '' |
The date as a string
|
string
|
$format = 'd-m-Y' |
How to format the date. DATETIMEOBJ for datetime object.
|
Return value
string|\dateTime
|
The formatted date
|
Hooks
Changelog
Resources