fork download
  1. <?php
  2.  
  3.  
  4. function retype_date_for_db($date){
  5. return date("Y-m-d", strtotime($date));
  6. }
  7.  
  8. function retype_date_for_site($date){
  9. return date("d.m.Y", strtotime($date));
  10. }
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty