convert_iso_date_format_to_br_date_format.php

public static function ISO2brDate($date){ if(isset($date) && !is_null($date) && '' != $date && 10 == strlen($date)){ $dtAux = substr($date, 8, 2).'/'; $dtAux .= substr($date, 5, 2).'/'; $dtAux .= substr($date, 0, 4); $date = $dtAux; } return $date; }
Convert ISO date format to BR date 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.