dfg
This commit is contained in:
parent
3f8b43ac59
commit
8c720aee1f
|
|
@ -166,15 +166,17 @@ function dateEng($d)
|
|||
|
||||
function dateLang($d, $lang=null)
|
||||
{
|
||||
if (isset($lang) && $lang=="en_US")
|
||||
{
|
||||
return dateEng($d);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return dateFr($d);
|
||||
}
|
||||
$date = DateTime::createFromFormat('d/m/Y', $d);
|
||||
|
||||
if (!$date) {
|
||||
return "Format de date invalide";
|
||||
}
|
||||
|
||||
if (isset($lang) && $lang=="en_US") {
|
||||
return $date->format('m/d/Y'); // format US
|
||||
} else {
|
||||
return $date->format('d/m/Y'); // format FR
|
||||
}
|
||||
}
|
||||
|
||||
function dateheureFr($d)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user