Bonjour, Aujourd’hui je vais vous montré comment créer une fonction PHP qui nous permettra de conversitr une date au Format Anglais au Format Français. Par default MySQL accepte le format de date en Anglais suivant:
AAAA-MM-JJ (2017-12-29)
pour afficher la date actuelle en PHP on utilise la fonction suivante:
Comment convertir une date recueillir depuis une base de donnée pour l’avoir au format Français suivant: 29-12-2017 ou 29/12/2017. Pour cela on va créer une fonction appeler maDate();
On peut aussi vérifier si la date est au bon format souhaité. pour cela ajouter ces lignes de code ci-dessous après la deuxième ligne dans la fonction maDate()
Greetings from Colorado! I’m bored at work so I decided to
browse your blog on my iphone during lunch break.
I enjoy the knowledge you present here and can’t wait to take a look when I get home.
I’m shocked at how quick your blog loaded on my cell phone ..
I’m not even using WIFI, just 3G .. Anyways, superb blog!
Thank you Very Much.
We stumbled over here different page and thought
I might check things out. I like what I see so now i am
following you. Look forward to looking over your web
page for a second time.
thank you very much, stay on !!!
Тhanks for finally writing about >convеrtir une date depuis une Base de Données en Ϝrɑnçaiѕ avec PHP <Liked it!
Thank for visiting MY web site.
Hi, you van fond MY Web application Projets Menu.
Aftеr exploring a handful of tthe аrticles on your web page, I tгuly appreciate yоur way of bloggіng.
I bookmarked it to my bookmark site list and wіll be chcking
baⅽk soon. Pllease check out my website as well and tell me what you think.