date_i18n


date_i18n ( $dateformatstring, $timestamp_with_offset = false, $gmt = false )

Parameters:
  • (string) $dateformatstring Format to display the date.
  • (int|bool) $timestamp_with_offset Optional. A sum of Unix timestamp and timezone offset in seconds. Default false.
  • (bool) $gmt Optional. Whether to use GMT timezone. Only applies if timestamp is not provided. Default false.
Returns:
  • (string) The date, translated if locale specifies it.
Defined at:

Description

Retrieve the date in localized format, based on a sum of Unix timestamp and timezone offset in seconds.

If the locale specifies the locale month and weekday, then the locale will take over the format for the date. If it isn't, then the date format string will be used instead.

Related Functions

update_option, update_nag, wp_update_link, validate_plugin, path_join

Top Google Results

User discussions

wpseek mobile