How to specify saturday as a week day for strtotime
问题 I need to add 2 business days to the current date. I was going to use strtotime for it, but strtotime's weekdays don't include saturday. $now = date("Y-m-d H:i:s"); $add = 2; $format = "d.m.Y"; if(date('H') < 12) { $add = 1; } $date = strtotime($now . ' +'.$add.' weekdays'); echo date($format, $date); This would output Tuesday if you run it on Friday. But it actually should return Monday. How can i add Saturday as a weekday? 回答1: Get next business day from specific date + number of day offset