Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $now="2014-09-01";
- $t="$now +1 month";
- echo "sebelum : ".date("d-m-Y",strtotime($now));;
- echo "<br> sesudah :".date("d-m-Y",strtotime($t));
- echo "<br> sesudah :".date("d-m-Y",strtotime("$now +4 month"));
- /*
- sebelum : 01-09-2014
- sesudah :01-10-2014
- ...... apa hasilnya??
- */
Advertisement
Add Comment
Please, Sign In to add comment