Answers for "http://www.finalclap.com/faq/81-php-afficher-date-heure-francais"

PHP
0

http://www.finalclap.com/faq/81-php-afficher-date-heure-francais

<?php
// setlocale(LC_TIME, 'fr_FR.UTF8');
// setlocale(LC_TIME, 'fr_FR');
// setlocale(LC_TIME, 'fr');
setlocale(LC_TIME, 'fra_fra');
 
echo strftime('%Y-%m-%d %H:%M:%S');  // 2012-10-11 16:03:04
echo strftime('%A %d %B %Y, %H:%M'); // jeudi 11 octobre 2012, 16:03
echo strftime('%d %B %Y');           // 11 octobre 2012
echo strftime('%d/%m/%y');           // 11/10/12
?>
Posted by: Guest on May-28-2020
0

http://www.finalclap.com/faq/81-php-afficher-date-heure-francais

<?php
echo date('Y-m-d H:i:s');  // 2012-10-11 15:35:53
echo date('l j F Y, H:i'); // Thursday 11 October 2012, 15:35
echo date('d F Y');        // 11 October 2012
echo date('d/m/Y');        // 11/10/12
?>
Posted by: Guest on May-28-2020

Browse Popular Code Answers by Language