php8.5
Home/ Manual/ reference / intl/ The IntlDateFormatter class

The IntlDateFormatter class

Date Formatter is a concrete class that enables locale-dependent formatting/parsing of dates using pattern strings and/or canned patterns.

Intro

Date Formatter is a concrete class that enables locale-dependent formatting/parsing of dates using pattern strings and/or canned patterns.

This class represents the ICU date formatting functionality. It allows users to display dates in a localized format or to parse strings into PHP date values using pattern strings and/or canned patterns.

Class synopsis

class IntlDateFormatter { }

Changelog

VersionDescription
8.4.0Added IntlDateFormatter::PATTERN.

See Also

  • ICU Date formatter
  • ICU Date formats

Dateformatter-constants

Changelog

VersionDescription
8.4.0The class constants are now typed.

Dateformatter

In this section

Source: reference/intl/dateformatter.xml · from the official PHP manual (php/doc-en)