Quelle est votre date d’arrivée?



format(‘d-m-Y’);
echo $DateF0;

$DateL = DateTime::createFromFormat(« d-m-Y », $_POST[‘date’]);
$DateFL = $DateL->format(‘Y-m-d’);
echo $DateFL;
$formatter = new IntlDateFormatter(‘fr_FR’,IntlDateFormatter::LONG,

IntlDateFormatter::NONE,

‘Europe/Paris’,

IntlDateFormatter::GREGORIAN );

$date =DateTime::createFromFormat(« d-m-Y », $_POST[‘date’]);

echo $formatter->format($date);

echo « 

« ;
$Date1=$Date0->add(new DateInterval(‘P1D’));
$DateF1 = $Date1->format(‘D

d

M’);
echo « 

« ;
$Date2=$Date1->add(new DateInterval(‘P1D’));

$formatter = new IntlDateFormatter(‘fr_FR’,IntlDateFormatter::LONG,

IntlDateFormatter::NONE,

‘Europe/Paris’,

IntlDateFormatter::GREGORIAN );

echo $formatter->format($date2);

$DateF2 = $Date2->format(‘d-m-Y’);
echo « 

« ;
$Date3=$Date2->add(new DateInterval(‘P1D’));
$DateF3 = $Date3->format(‘d-m-Y’);
echo « 

« ;
$Date4=$Date3->add(new DateInterval(‘P1D’));
$DateF4 = $Date4->format(‘d-m-Y’);
echo « 

« ;
$Date5=$Date4->add(new DateInterval(‘P1D’));
$DateF5 = $Date5->format(‘d-m-Y’);
echo « 

$DateF0 $DateF1 $DateF2 $DateF3 $DateF4 $DateF5
nb de suites disponibles $room1 $room2 $room3 $room4 $room5 $room6

« ;
}

$dateFormat = new LocaleDateFormat(‘MMMM’); # Long Month Names

$date = new DateTime(); # Now

$locale = « fr_FR »;
$month = $dateFormat->localeFormat($locale, $date);
printf(« %d. %s – %s\n », $i+1, $locale, $month);

?>