How can I get future date by php date() function, for example today is 11/13/2007, I want to get the date after 60 days.

Any advice will be appreciated.

Recommended Answers

You need to use strtotime().

Jump to Post

All 3 Replies


echo 'Now: '. date('Y-m-d') ."\n";

echo 'After 60 days : '. date('Y-m-d', strtotime('+60 days')) ."\n";


You can also use mysql functions as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.