Hi,
date('W') returns current week of the month based on Monday. What I need to know is what date is that Monday?
exp:
week 2 - Monday 01/09/2005
Regards...
[SOLVED] monday of the week ???
Moderator: General Moderators
[SOLVED] monday of the week ???
Last edited by wtf on Thu Jan 12, 2006 8:55 pm, edited 3 times in total.
Code: Select all
<?php
echo date("Y-m-d", strtotime("monday"));
?>sweet.... didn't expect it to be that easy. Some complex stuff listed on php.net
or
check this one out...
http://www.phpbuilder.com/board/showthr ... t=10222903
thanks
or
check this one out...
http://www.phpbuilder.com/board/showthr ... t=10222903
thanks
Last edited by wtf on Mon Jan 09, 2006 2:00 pm, edited 1 time in total.
Don't underestimate the power of http://www.php.net/strtotime. There are a couple of impressive possibilities mentionned in the comments too..