--- title: Intl.DateTimeFormat.prototype slug: conflicting/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat tags: - Internationalisation - Intl - JavaScript - Propriété - Prototype - Reference - i18n translation_of: Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat translation_of_original: Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/prototype original_slug: Web/JavaScript/Reference/Objets_globaux/Intl/DateTimeFormat/prototype ---
{{JSRef}}

La propriété Intl.DateTimeFormat.prototype représente le prototype du constructeur {{jsxref("DateTimeFormat", "Intl.DateTimeFormat")}}.

{{js_property_attributes(0,0,0)}}

Description

Voir la page {{jsxref("DateTimeFormat")}} qui décrit les instances de Intl.DateTimeFormat.

Les instances de {{jsxref("DateTimeFormat", "Intl.DateTimeFormat")}} héritent de Intl.DateTimeFormat.prototype. Les modifications apportées à l'objet prototype sont propagées sur toutes les instances de  Intl.DateTimeFormat par héritage.

Propriétés

Intl.DateTimeFormat.prototype.constructor
Une référence à Intl.DateTimeFormat.

Méthodes

{{jsxref("DateTimeFormat.format", "Intl.DateTimeFormat.prototype.format")}}
Un accesseur qui renvoie une fonction formattant une date selon les options de format et de locale spécifiées pour l'objet DateTimeFormat.
{{jsxref("DateTimeFormat.formatToParts","Intl.DateTimeFormat.prototype.formatToParts()")}}
Renvoie un tableau d'objets qui représentent les composants de la date sous forme de chaînes de caractères afin que celles-ci puissent être utilisée dans une mise en forme adaptée à la locale.
{{jsxref("DateTimeFormat.resolvedOptions", "Intl.DateTimeFormat.prototype.resolvedOptions()")}}
Renvoie un nouvel objet dont les propriétés indiquent les options de format et de locale calculées lors de l'initialisation de l'objet.

Spécifications

Spécification Statut Commentaires
{{SpecName('ES Int 1.0', '#sec-12.2.1', 'Intl.DateTimeFormat.prototype')}} {{Spec2('ES Int 1.0')}} Définition initiale.
{{SpecName('ES Int 2.0', '#sec-12.2.1', 'Intl.DateTimeFormat.prototype')}} {{Spec2('ES Int 2.0')}}  
{{SpecName('ES Int Draft', '#sec-Intl.DateTimeFormat.prototype', 'Intl.DateTimeFormat.prototype')}} {{Spec2('ES Int Draft')}}  

Compatibilité des navigateurs

{{Compat("javascript.builtins.Intl.DateTimeFormat.prototype")}}

Voir aussi