SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Top