Core Function
View Source on Trac ↗ date_i18n()
date_i18n( mixed $format, mixed $timestamp_with_offset = false, mixed $gmt = false ) Retrieves the date in localized format, based on a sum of Unix timestamp and
Parameters 3 required
| Name / Type | Description |
|---|---|
| $format string | Format to display the date. Required |
| mixed | (int | bool) $timestamp_with_offset Optional. A sum of Unix timestamp and timezone offset in seconds. Default false. Required |
| bool | $gmt Optional. Whether to use GMT timezone. Only applies if timestamp is not provided. Default false. Required |
Return Value
(string)
The date, translated if locale specifies it.
Function Information
Since Version
0.71
Source File
wp-includes/functions.php
Advertisement