How to get yesterday and tomorrow date in php
Syntax for getting yesterday using php
1 2 3 4 |
<?php echo "Yesterday Date : "; echo date("Y-m-d",strtotime("yesterday")); ?> |
Syntax for getting tomorrow using php
1 2 3 4 |
<?php echo "Tomorrow date :"; echo date("Y-m-d",strtotime("tomorrow")); ?> |