Events date format function.


em_format_date($date, $type, $format)


  • $date | string – date given in any format recognizable by PHP strtotime() function (required)
  • $type | string – date returned in one of the following types: (optional)
    • datetime – date and time
    • time – only time
    • date – only date
  • $format | mixed (boolean, array) – an array of date & time format recognizable by PHP date() function, for example: array(‘date’ => ‘Y-m-d’, ‘time’ => ‘H:i:s’) or FALSE in case of default formatting.


Formatted date. Notice: when date or datetime type is selected, a WordPress date_i18n() function is used instead of PHP’s date() function.

No replies yet

Be first to start the conversation.

Leave a Reply

Please, do not use this form for technical support. To get support for our plugins, use the support forum.

Your email address will not be published. Required fields are marked *