Skip to content

Instantly share code, notes, and snippets.

@rwaddin
Last active August 31, 2022 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaddin/4af83650dc67cac1b4f5607fadfd94d7 to your computer and use it in GitHub Desktop.
Save rwaddin/4af83650dc67cac1b4f5607fadfd94d7 to your computer and use it in GitHub Desktop.
embed medium add & substrac date
<?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