Reputation: 18103
It's monday and I run the following:
$d = date('d-m-Y', strtotime('this tuesday'));
Which gives me date the of tomorrow, 08-07-2014
If i run
$d = date('d-m-Y', strtotime('next tuesday'));
It provides me the same.
But how can i easiest get the next tuesday in the next week (not tomorrow)?
Upvotes: 1
Views: 75
Reputation: 534
You can add days also to get desire result like :
date('Y-m-d', strtotime('this tuesday +7 days'));
Upvotes: 0
Reputation: 409
You can do the following
$d = date('d-m-Y', strtotime('next week tuesday'));
Upvotes: 1