Posted By

andreiabohner on 12/29/09


Tagged

php date DateTime modify


Versions (?)

Date modify


 / Published in: PHP
 

URL: http://www.php.net/manual/pt_BR/function.date-modify.php

  1. <?php
  2. $date = new DateTime("2006-12-12");
  3. $date->modify("+1 day");
  4. echo $date->format("Y-m-d");
  5. ?>

Report this snippet  

You need to login to post a comment.