apply_filters( ‘date_formats’, string[] $default_date_formats )

In this article

Filters the default date formats.

Parameters

$default_date_formatsstring[]
Array of default date formats.

Source

$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) );

Changelog

VersionDescription
4.0.0Added ISO date standard YYYY-MM-DD format.
2.7.0Introduced.

User Contributed Notes

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