PHP time functions
Posted: Fri Sep 28, 2007 9:43 am
Hey guys, I'm wondering if theres an easy way to get the timestamp for monday at midnight of the current week, and friday midnight of the current week.
I thought of using strtotime's "last monday", but if the day is monday it will go 1 week behind.
Of course I can make some conditional checks and fix this, but I'm wondering if theres an easier way to go at it.
Thanks.
I thought of using strtotime's "last monday", but if the day is monday it will go 1 week behind.
Of course I can make some conditional checks and fix this, but I'm wondering if theres an easier way to go at it.
Thanks.