A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate below:

Date.prototype.getDate() - JavaScript | MDN

Date.prototype.getDate()

Baseline Widely available

La méthode getDate() retourne le jour du mois pour la date spécifiée d'après l'heure locale.

Exemple interactif
const birthday = new Date("August 19, 1975 23:15:30");
const date1 = birthday.getDate();

console.log(date1);
// Expected output: 19
Syntaxe Paramètres

Aucun.

Valeur de retour

Un entier entre 1 et 31 correspondant au jour du mois de la date indiquée selon l'heure locale.

Exemples Utiliser getDate()

La seconde instruction ci-dessous affecte la valeur 25 à la variable jour, d'après la valeur de l'objet Date Noel95.

var Noel95 = new Date("December 25, 1995 23:15:00");
var jour = Noel95.getDate();

console.log(jour); // 25
Spécifications Compatibilité des navigateurs Voir aussi

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4