“Liste des dates PHP” Réponses codées

Date PHP

$today = date("F j, Y, g:i a");                   // March 10, 2001, 5:16 pm
$today = date("m.d.y");                           // 03.10.01
$today = date("j, n, Y");                         // 10, 3, 2001
$today = date("Ymd");                             // 20010310
$today = date('h-i-s, j-m-y, it is w Day');       // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');     // It is the 10th day (10ème jour du mois).
$today = date("D M j G:i:s T Y");                 // Sat Mar 10 17:16:18 MST 2001
$today = date('H:m:s \m \e\s\t\ \l\e\ \m\o\i\s'); // 17:03:18 m est le mois
$today = date("H:i:s");                           // 17:16:18
$today = date("Y-m-d H:i:s");                     // 2001-03-10 17:16:18 (le format DATETIME de MySQL)
Joyous Jaguar

Liste des dates PHP

date("d"); //Day of month: 09
date("j"); //Day of month without 0: 9
date("jS"): //Day of month with "th": 21th
date("D"): //Day of week abbreviated: Thu
date("l"): //Day of week: Thursday
date("z"); //Day of the year: 110
date("t"); //Number of days in given month: 30
date("m"); //Month number: 04
date("n"); //Month number without 0: 4
date("M"); //Month name abbreviated: Apr
date("F"); //Month name: April
date("Y"); //Year: 2022
date("y"); //Last 2 digits of year: 22
date("o"); //ISO Year number: 2022
date("h"); //Hour (12 fomrat): 02
date("H"); //Hour (24 fomrat): 14
date("g"); //Hour without 0 (12 fomrat): 2
date("G"); //Hour without 0 (24 fomrat): 14
date("i"); //Minutes: 29
date("s"); //Seconds: 24
date("u"); //Microseconds: 33
date("a"); //am or pm
date("A"); //AM or PM
date("e"); //Timezone identifier: UTC
Armandres

Date PHP

$today = date("F j, Y, g:i a");                   // March 10, 2001, 5:16 pm
$today = date("m.d.y");                           // 03.10.01
$today = date("j, n, Y");                         // 10, 3, 2001
$today = date("Ymd");                             // 20010310
$today = date('h-i-s, j-m-y, it is w Day');       // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');     // It is the 10th day (10ème jour du mois).
$today = date("D M j G:i:s T Y");                 // Sat Mar 10 17:16:18 MST 2001
$today = date('H:m:s \m \e\s\t\ \l\e\ \m\o\i\s'); // 17:03:18 m est le mois
$today = date("H:i:s");                           // 17:16:18
$today = date("Y-m-d H:i:s");  
Busy Badger

Réponses similaires à “Liste des dates PHP”

Questions similaires à “Liste des dates PHP”

Plus de réponses similaires à “Liste des dates PHP” dans PHP

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code