I am getting dates from a database and I've been trying to get the time of this french date format: DD-M-yy and it's giving me nothing.
Exemple of this date: 01-juin-18
so
$t = strtotime("01-juin-18");
echo($t); //return nothing
I also try to set local first and that's not working
setlocale(LC_TIME, "fr_FR");
echo(strtotime("01-juin-18")); //return nothing
Is there a way to get the time from a french date?
Edit:
With the solution here: Marco Demaio's solution I've been able to make it work but I also had to remove the function strtolower() because it wasn't working with the word août