Code: Select all
echo date("D Y-m-d",strtotime("last monday"));
echo "<br>";
echo date("D Y-m-d",strtotime("monday"));
echo "<br>";
echo date("D Y-m-d",strtotime("next monday"));Code: Select all
Mon 2008-02-04
Mon 2008-02-11
Mon 2008-02-11If this is correct behavior then I guess I need to do some conditionals to take into account adding "last" or not... can you offer any suggestions for that?
BTW, here are my specs:
PHP Version 5.2.3-1ubuntu6.3
Linux jii-btn1 2.6.22-14-server #1 SMP Tue Dec 18 08:31:40 UTC 2007 i686
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 mod_ssl/2.2.4 OpenSSL/0.9.8e
TIA,
Eric