Last active
August 31, 2022 03:36
-
-
Save rwaddin/4af83650dc67cac1b4f5607fadfd94d7 to your computer and use it in GitHub Desktop.
embed medium add & substrac date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# mengurangi tanggal 7 hari | |
$date = date("Y-m-d", strtotime("-7 days")); | |
echo $date; | |
# menambah tanggal 7 hari | |
$date = date("Y-m-d", strtotime("+7 days")); | |
echo $date; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment