Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. //formata a saída de dodos do tipo date que vem do banco no formato aaaa-mm-dd para o formato dd-mm-aaaa
  2.     function output_date($data){
  3.     if(empty($data)){
  4.     return;
  5.     }
  6.     $e=explode("-",$data);
  7.     $new_date=$e[2]."-".$e[1]."-".$e[0];
  8.    
  9. return $new_date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement