SHARE
TWEET

Untitled

a guest Jun 24th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // do formato mysql (0000-00-00) para o pt-br (00/00/0000)
  3. echo transformDate($data);
  4.  
  5. // do formato pt-br (00/00/0000) para o mysql (0000-00-00)
  6. echo transformDate($data, 'd/m/Y','Y-m-d');
  7.  
  8. // do formato banco (000000) para o pt-br (00/00/0000)
  9. echo transformDate($data,'dmy');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top