Welcome to AlertInfo share with
Post a Free Classified

How can I get a date after or before from currentdate in php

Hi, It’s a simple code:

Check below  it will display the past 6 days dates if u pass -6 other wise it  will display after 6 days date

from current date.

$last_week=date(‘Y-m-d’,strtotime(‘-6 days’));

 

Im sure, It will work have a nice day.

TV Channels