fork(1) download
  1. <?php
  2.  
  3. $data_final = '26/11/2017';
  4.  
  5. $ontem = DateTime::createFromFormat('d/m/Y', $data_final)->modify('-1 day');
  6.  
  7. echo $ontem->format('d/m/Y');
Success #stdin #stdout 0.01s 83904KB
stdin
Standard input is empty
stdout
25/11/2017