wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_date › WordPress Function

Since5.3.0
Deprecatedn/a
wp_date ( $format, $timestamp = null, $timezone = null )
Parameters: (3)
  • (string) $format PHP date format.
    Required: Yes
  • (int|null) $timestamp Optional. Unix timestamp. Defaults to current time.
    Required: No
    Default: null
  • (DateTimeZone|null) $timezone Optional. Timezone to output result in. Defaults to timezone from site settings.
    Required: No
    Default: null
Returns:
  • (string|false) The date, translated if locale specifies it. False on invalid timestamp input.
Defined at:
Codex:

Retrieves the date, in localized format.

This is a newer function, intended to replace date_i18n() without legacy quirks in it. Note that, unlike date_i18n(), this function accepts a true Unix timestamp, not summed with timezone offset.


Related Functions: wp_die, wp_checkdate, is_date, wp_salt, the_date

Source

Soon...