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.
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.
<?php
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.