CodeIgniter Forums
prob with date function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: prob with date function (/thread-8818.html)



prob with date function - El Forum - 06-02-2008

[eluser]manash007[/eluser]
how can i get the date of next monday or any of the day ???????


prob with date function - El Forum - 06-02-2008

[eluser]Seppo[/eluser]
Code:
<?php
echo date('Y-m-d', strtotime('Next Monday'))
?>

To get the next monday... I don't get what you mean by "any of the day"