Warface
Warface

Reputation: 5119

strtotime for weekdays starting on actual week

I'm trying to get the starting monday date of the actual week we are in. Like we are July 15th and would like to have the result with strtotime to return July 11th...

I've tried

strtotime("-1 weekdays");

Without luck... What could be the function for the actual week please.

Thanks

Upvotes: 0

Views: 557

Answers (2)

sdolgy
sdolgy

Reputation: 7001

Did none of these help you to find your answer?

Upvotes: 0

Frankie
Frankie

Reputation: 25165

$timestamp = strotime('monday this week');

Will give you Monday! ;)

Upvotes: 2

Related Questions