public static function brDate2ISO($date){
if(isset($date) && !is_null($date) && '' != $date && 10 == strlen($date)){
$dtAux = substr($date, 6, 4).'-';
$dtAux .= substr($date, 3, 2).'-';
$dtAux .= substr($date, 0, 2);
$date = $dtAux;
}
return $date;
}
Convert BR date format to ISO format
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.