PHP Web Development

How to get yesterday and tomorrow date in php

Syntax for getting yesterday using php

<?php
echo "Yesterday Date : ";
echo date("Y-m-d",strtotime("yesterday"));
?>

Syntax for getting tomorrow using php

<?php
echo "Tomorrow date :";
echo date("Y-m-d",strtotime("tomorrow"));
?>

 

Recommended Tutorials for you


Related posts

PHP Variables

Anuj Kumar

How to get current page URL in php

Anuj Kumar

How to convert number to String in PHP

Anuj Kumar

How to Concatenate two or more string in PHP

Anuj Kumar

How to send Mail Using PHP

Anuj Kumar

Time Ago Script

Anuj Kumar

Hit counter in PHP

Anuj Kumar

How to maintain the password history using php and mysql

Anuj Kumar

Looping Statement In PHP

Anuj Kumar

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.