apply_filters( 'date_i18n', string $date, string $format, int $timestamp, bool $gmt )

Filters the date formatted based on the locale.

Parameters Parameters


(string) Formatted date string.


(string) Format to display the date.


(int) A sum of Unix timestamp and timezone offset in seconds. Might be without offset if input omitted timestamp but requested GMT.


(bool) Whether to use GMT timezone. Only applies if timestamp was not provided. Default false.

Top ↑

Source Source

File: wp-includes/functions.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.