Getting Date before or after 3 days from current date using PHP

In this Tutorial, we are showing how to get date before or after 3 days from current date.
By using a simple method we can perform this in our live project.

Here we are: -
Just copy this code and can use it into your project.


Note: - According to the requirement you can also change into the code. Like how many days you required before and after current date. In the Example, We are using 3 days before and after. just you have to change into "($curdate-3)" 3 number.

We can also get date after 3 days from the current date.

Note: - For using after current date change the difference of date by changing the  "($curdate+3)" 3 number to get  according yourself.

 You Might Also Read : -

0 comments :

Post a Comment

 
# Top