In addition, they've introduced 'second' as in 'second Saturday' and seem to have changed the meaning of 'next'. Previous Next ❯. The PHP date() function is used to format a date and/or a time. a year (in four digits); l (lowercase 'L') - Represents the day of the week. Use strtotime() function to get the first day of week using PHP. This function returns the default time variable timestamp and then use date() function to convert timestamp date . For week after next week the time-string wil be " sunday 1 week". This page describes the different relative date/time formats that the strtotime(), DateTime and . echo date('F jS, Y', strtotime('Monday next week ')); ?>. $monday = new DateTime('monday'); // clone start date $endDate = clone The question is tagged "php" so as Tom said, the way to do that would look like this. Luckily, PHP comes with some built-in date and time functions which will help us do all that and much more quite easily. D, day of the week as a three-letter abbreviation, Mon . $some_time = strtotime ("next month");. This is a small cheat sheet for PHP's strtotime function, which can be used to convert Get next Monday (the result will be relative to today's date, of course). If the current day is tuesday, and you want to get the monday of last week, then the previous monday will not get the monday you want, it will get the date of the. echo "Next Monday:". date('Y-m-d', strtotime('next monday', week Monday'));. or whatever you want afcef.org This post shows two examples of how to find the week list for the current date. Input parameter is date, and the output is date list from Monday.