rash,
il y a 12 ans
Salut,
Tu récupères la date et tu en fais un array puis tu peux choper les éléments séparément.
Ex :
<?php
$champDate = "1987-07-19";
$date = explode('-', $champDate);
echo $date'0']; //Année
echo $date'1']; //Mois
echo $date'2']; //Jour