How can I get the date for monday and friday for the current week?
I have the following code, but it fails if current day is sunday or saturday.
$cu
These strtotime inputs work very well:
strtotime( "next monday" ); strtotime( "previous monday" ); strtotime( "today" ); strtotime( "next friday" ); strtotime( "previous friday" );
All you need to do is to wrap the logic inside some if statements.