GWibisono

1 bulan kemudian

Sep 21st, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2. $now="2014-09-01";
  3.  
  4. $t="$now +1 month";
  5. echo "sebelum :  ".date("d-m-Y",strtotime($now));;
  6. echo "<br> sesudah :".date("d-m-Y",strtotime($t));
  7. echo "<br> sesudah :".date("d-m-Y",strtotime("$now +4 month"));
  8. /*
  9. sebelum : 01-09-2014
  10. sesudah :01-10-2014
  11. ...... apa hasilnya??
  12. */
Advertisement
Add Comment
Please, Sign In to add comment