php week of a date

Solutions on MaxInterview for php week of a date by the best coders in the world

showing results for - "php week of a date"
Mattia
30 Mar 2017
1$dayofweek = date('w', strtotime($date));
2$result    = date('Y-m-d', strtotime(($day - $dayofweek).' day', strtotime($date)));
Louison
17 Feb 2018
1
2Things to be aware of when using week numbers with years.
3
4<?php
5echo date("YW", strtotime("2011-01-07")); // gives 201101
6echo date("YW", strtotime("2011-12-31")); // gives 201152
7echo date("YW", strtotime("2011-01-01")); // gives 201152 too
8?>
9
10BUT
11
12<?php
13echo date("oW", strtotime("2011-01-07")); // gives 201101
14echo date("oW", strtotime("2011-12-31")); // gives 201152
15echo date("oW", strtotime("2011-01-01")); // gives 201052 (Year is different than previous example)
16?>
17
18Reason:
19Y is year from the date
20o is ISO-8601 year number
21W is ISO-8601 week number of year
22
23Conclusion:
24if using 'W' for the week number use 'o' for the year.
25
Lea
07 Jan 2018
1date('w'); //gets day of week as number(0=sunday,1=monday...,6=sat)
2
3//note:returns 0 through 6 but as string so to check if monday do this:
4if(date('w') == 1){
5	echo "its monday baby";
6}
queries leading to this page
php weekday form datey 2fm 2fd h 3ai 3asphp date day name and month namefirst day of this week this month this year phpdate php functionget date of coming weekday phpget week number 28in the year 29 in month phpphp day of the week 2b 1 dayget number of week day from date phpphp week day numberphp get days in current weekget date from month and week phpget today weekday phpphp date hourphp datetime day of the weekphp one week from todaydate format year week phpweek number phpphp how to get the day using numberphp get day of week numberphp get number of weekphp week of a datephp get week days date by week numberphp check the day of the week 27h 3ai 3as 27 vs h 3as 3ai time formatdate 28 22n 22 2c 24time 29php date to week numberget all days of week in phpphp is weekdaythe reason of get date from date functio php errorphp complete dateget dayname of date phpmonday this week php and sunday this weekget today 27s day of week phpcurrent week date in phpget dates from week in phpphp 27s m for datingphp date string 2b 1date 28 29 day phpphp weekday number to namehow to get number of weekes in a year phpphp get current weekhow to get week day in phpphp correct datehow to check day is first week of month phpphp date 1 weekdate 28 27y 27 29php date week day numberphp date format full day namephp date day of week in wordfind weekday from date phpget current week number in phpgenerate dates current week in phpdate weekday phpphp datesget the dates of current week phphow to get day of the week from date in phpphp create constant today datephp get current date weekformat timestamp phpphp date cphp week number of monthadd in date get week number in phpadd weekday to date phpphp get week range from monthget day of week phpdatetime default format hour format phhow to get current day of a week in php from systemphp echo days of the weekdate get week number starting from a certain day of the week phpphp get one week of datephp get first day of week from monthphp check date is weekdayphp time formatting time zonephp date day of week in stringphp get current week datesphp list all days this weekphp format date from timestamp with timezone date 28 22g 3ai a 22 29y m d date formatphp date 28ymd 29php get monday by week and yearcurrent year week number phpphp full month namephp echo date day of weekphp date day of week from dateconvert date to weekday phpfirst day of current week date in phpphp date day of weekphp datetime get day of the weekphp date monthnamedate 28 27d 27 2c 29pick time from weekday and time string phpget the week of the date phpphp first day of weekphp print date day monthdatetime day of week phpphp check days of the weekphp only weekfull monthphpphp iso8600 dateget day of week of date phpphp check datetime in a weekphp date ymdphp date of datephp date monday this weekcalculate week from date in phpfirst day of week phpstart of week php datetimephp mdate date format php yphp find date by week numberphp date valueof 28 29get total week from specific month phpdate 28 27y m d h 3ai 3as 27 29 3bdate 28his 29php get date using year as baseget 1st day of week phpget first day of the week phpget the date of the current week in phpdatetime format day weekday phpphp echo day of weekget the day from date phphow to get the week number in phpphp days of the week tablephp date format with scorephp date y m d h i sphp string week dayphp get day by intphp get all week of monthphp get current day of weekget week day count in phpphp datetime day of weekhow to get only week days using phpphp check how many week from specific dateweekday stroe in phpphp get week date rangeget day based on week phpget the week day from date inphpphp get sunday next week php day number of week to wordphp week of yearphp date nday inphpget day of week name from date in phpdate 28 29 php format variablestrptime to day of week phpphp get day week year of numberget week number phpget this week monday date phpphp datetime object get day of week in wordsget week day from week number phpday of the week in php from datephp date weekday namephp week day nameget weekend days in month phpphp date valueof 28 29 equivalentdate 28 27w 27 29 in phphow to display current day of a week in phpphp get today day of weekphp what day of weekphp date iso 8601get weekday from date phpphp to take all current week dateson which day of the week is the first of the month calendar phpphp get first day of week from datedate method phpphp convert date to day of weekhow to display weekday in phpweek number for the current date in phpphp get days of a weekphp all day of current weekphp get current week monday datephp how to get day number from a date based on sunday or monday weeks php date month full nameunderstanding php date function tutoriaphp time 24 hour formatphp format heurephp 2b 1 week of given dateget date month and year in phphow to get a week based on a day in phpphp date format timezonehow to get the days in a week in phpphp format day of weekphp get first work day of weekphp date 3edate start day name of a week in phpphp week day onlyget days week in phphow to get current day of week in php 3fwhat is date 28 27g 27 29php get date month namephp get the day of month datephp find monday of current weekphp get year month from week numberphp iso timestamp formaty m d h i show to get 7 days of the week from current date in phpphp one week timeget week of year date phpphp get this week mondayphp get week of date rangephp monthphp to take all current week daysdate find day of week in php php date name of dayhow to get the how many week in this month in phpget the day of the week from date phpget week dates phpdate time in phphow to know a month with date string in phpphp datetime get week daydate php codephp datetime get weekmonth digit date phpdate 28 22h 3ai 22php get next date by day of weekphp check if weekday or weekendhow to get weeking number in phphow to find the week count in phpcurrent week number phpday of the week phpdate formats phpcurrent week in phpget day name from date in phpreturn day week datetime phpcreate a date with weekday representation phpget the first day of a given week phpweekday phpget date by week number of year phpphp dtae 24hdate 28 c time 28 29 29 phpphp get week number from timestampphp first day of this weekt in date 28 29 php get date to week days name in phpphp time formatphpdatephp iso formatget today week day in phpphp get date from weekdayphp weekddayphp date current day with lettersphp get day of week in dateformat y m dphp get date of week numberphp date fromn y m dnext week data phpphp current weekphp format g 3aihow to create date from week in phpphp date week of monthdatetime week number phpphp date valuesphp day of weekdate 28y m d 29 phphow to get all date of first week in month phpget all days of week phpweek number from date phpphp get day of week namephp get week of year in a period of datesphp function to find day of the week from datephp get current dayphp get days of week in date rangephp number of day in weekshtml tags in date format phpfind current week of year phpphp date 2b 1 weekphp to get date numberdate 28h 29php start of current weekphp get monday of week and yearphp date get sunday of this weekphp new dataphp date formatr hour minute secondphp date day numberphp check if current date is weekday or notphp get week number of monthget days given week in phpphp set date and get microdatey m d datephp get dayofweek number from datetimedate in phpprint monday of the week when entering date month year phpphp get week from week numberget the monday date of the current week phpweek function in phpphp get the first day of the weekphp get day of week in textget day phpphp gmdate week numberhow to know which week it is from the day phpphp date suphp date 27w 27php iso 8601 datedate 28 27c 27 29 in phpget date day in phpphp count day of weekphp check if day is first week dayconverter dados datetime em string phpdate l phphow to print week number php and number of day from the curreent weekweek of the year phpphp full dayphp week nameget day on this week phphow to get the current month week start date and end date in phpphp formatted dateformat date phpday date phpphp check day of weekphp datetime week numberphp get day of week from date stringphp 1 weekphp get week numbercheck if first day of week in phpweek of date phpphp get sunday of this weekcheck day of the week phpphp get week dayphp check if date get number of weekdate function in phpdate 28 22g 22 29 3b timezonedatetime format php day of weekdates in phpcheck one week in php datephp date format nhow to get the day in this week phpweek starting date and end date in phpphp get date one week agophp date get days of week monday to sundayymdhms php date formatphp date letterstimestamp to date format phpphp date get day of weekphp date format m 2fd 2fyphp weekday numberphp date formats iso 86012nd day of the week in php dayhow to get weekday from date in phpcurrent week phpphp get current week days dates415045 date format php 22h 3ai 3as 22php 3ad m ydate format c phpdate php weekdaytimeformat in php 24hphp convert date to weekdayphp formatdisplay days in current week in phpthis week day found phpphp get first day of week numberphp day indexdate 27f 27get the date with phpphp select days of weekdate 1 week phpwhat day week was phpget day of the week number phpget week number from date without 0 phpphp day of week form dateweek start date in phpget current day phpweek name in 3 letters phpdate php day of wekkphp get week from date stringphp current date dayphp month name from datedate and hour phpshow year week phpphp date week number with sundayphp get monday of weekfind out what day of the week a certain date is php scriptphp value of datephp calculate week number from datephp start day of current weekget week of the year by date in phpphp date m jif date is a week phpget current week dates in phpphp get day of weekstart and end of week from date phpname of today phpdate 28 27l 27 29 sundayget current day of week phpweek phpphp date get weekdaydate a week from a date phpget day of the week name phpphp week numberphp week of the yeardate 28 29 in phpphp date monday of this weekphp date n to mphp get day of daten 2fj 2fy date format1 week date phpphp formpat datephp get current weekdayphp start date of current weekhow to know week number from date phphow to get week of a month using phpprint date kata phpphp datetime get any monday of weekm d h 3ai 3aadatetime manual date formatphp datetime object day of week wordsphp custom formatphp current week of yeardate 28 27f 27 29how to get date with number week phpdetermine this week 2c monthy year phpphp get day of the week in 28e g monday 29php get day number from weekdaydate day of week phpget weekday from timestamp phpdate 28 22y m d h 3ai 3as 22 29 3bphp get all days of current weekphp get week from dated m y h 3aiget day of week from phpget day of the week in number phpphp get day of the weekcheck weekday phpphp now typephp date week nameget date by week and year phpphp 2b weekhow to show week day in date phpphp get weekdate 28 27y m d 27how to calculate day of the week phpphp date format weekday namephp day of week nameget 6 days of week phphow to get next weekday dates in phpdate 28 22l 22 2c 24date 29 phpphp date to dayget al days of the week phpdetermine what day of the week the date is in phpget the week number of given date phpdate phpget current week number phphow to print month week and year in phpguet date phpdate 28 29 phpy m dphp get week day name from datehow to get the whole week from single date in phpdate withn week month or year phpphp get next date by day of week numberphp get date fonly 3 days per weekget today week day phpfunction php to know the date of current all weekget 1 week after date phpstart date of the week 2b phpphp first day this weekphp format to show all 4 year digitsfull month name phpget the last day of the week phpday of week count in phpget weekday from date in phpget week day name from date in phpall dates the year phpphp date functionsphp day of week number to nameget monday of current week php datetimecreate date in phptime format in php month namegetday in full letters phpphp week number starting sundayphp get week day selected month yearday of the week th usig phpdate uget date from current weekday phpdate php get nb day weeky m d h 3ai 3as o formatphp get week from week number 26 yearphp function month 28date 29day name of week phpfind next day of the week phpphp weekget the date based on week number phpget day of the week php datetimeget every week day in phpphp date full day namephp current date in workdsphp get particular week in a yearweek number php datephp date month is intiger or stringphp get current week of yearphp evary day for current weekphp get week start date end date from week number 26 yearphp date get week day numberdatetime weekday phpphp date and timeset weekday in phpphp day of the week namey m d h 3atimestamp format phprequired 7cdate format 3aymdhieh 3ai 3asfind week and week date in phpget total week of month phpdate 22g 27h 3ai 3as a in pjpphp get name of the dayget days of week phpphp weekday as numberdate format php days namehow to current week day in phpphp w day of week numberday of week in phpcheck if day is sunday with php datetimephp current date 2b 1 weekfunction for date in phpdate format r phpphp date format month namephp get week number of todayget last day of week phpphp get only weekoff days from range datehow generate week in phpyear phpphp time to stringphp get date from day of weekphp get date from week numberphp get weekday name from numberhow to print date in current week in phpnumber of day in week phpphp time j f ygive week and day number to get the date phpphp get first week day of monthdisplay all date in a week phpyears phpphp short day namephp dt fortmtsubday in date class phphow to know week from date phpphp days of weekget current week days in phpenter date to get week date in phpdate of the week phpfirst day of the week phphow to get week of a month in phpphp get todays day as number of weekphpdate formatphp 24weekget monday of the week in phpphp week start and end datedate 28n 29 27f 27 means in date 5bh 5bphp weekday todayget current week monday date in php php get date y m d hphp get date of the dayphp datetime to day of the weekget next week time phpdate date phphow to get week number of month in phpphp weekday namephp weekend or weekdaytime php g 3a i h 3aiphp get week day numberphp get current week based on date2nd day of the week in php datetimephp weekday today stringphp get datetime first day of weekphp jhow to get last day of week in phpfind day of week with 5cdatetime phpdates phppphp day of monthcheck which day of week phpphp get index of dayphp get dates of current weekget the first day of the week phpnew date phpget the current week number in phpcomplete months string phpget week start date and end date in phpphp this weekget date text phpdate format to show day off week phpdate function phpphp day of week from datehow to get current day of a week in phpphp get week of monthphp week dayphp current dayhow to get total week of the year in phpfirst date of a week phpphp new weekdayphp output day of weekdate 27g 27 29php 2b1 weekdayphp date to week dayphp date is a stringget year month and week phpdate 28 27y 27 2c 24date 29 3bphp date fucntionphp get week in monthphp get this week date rangephp get monday of given week and yearget the date based on week number and year phpdate php stringphp get week of timestampphp date week showphp get current week days dateshow week phpphp format date mont namephp day of week allget date php isophp get week day from datephp get current week number based on datephp date get monthget week number in date phpdate 28 27u 27 29 in phpphp day number of weekphp get all dates in weekphp datetime get this week and endget week number based on date phpphp get date of a week from nowdate 28 27hms 27php date iso 8601 formatphp date get day indexphp year week to dayphp number day of weekdate 28 27d 2fm 2fy h 3ai 3as 27 29 nowphp get weeknumberget current month week number in phpphp date day of week namedate 28 22u 22 29on which day of the week is the first of the month phphow to get day of the week according to date in phpget day 2cweek 2c month number 28in the year 29 from a date phpdate format php isodate his pm phpin a month how to get the week start date and end date in phpdays of the week in phphie date format phpmonday of current week php dateweek number phph datephp short date functionshow to get a week of a month using phpphp get weekday from datephp one week agophp day name from datefinding the date with php functionsphp get the week number of the year php actual weekphp get current calendar weekphp datetimw week dayphp date full monthphp get today weekday namephp time diff weekphp day name from date 28yyyy mm dd 29php if weekdayget the weekday of a daytime phpphp date get week numberget week phplaravel time y m d uget number of week phpphp option 10 ans datedate 28 y m dphp g 3ai aphp date object get day number of weekphp date first day of weekdate funcitonphp datetime getday of the weekget day of week from number phpphp get calendar week from datedays of a week in phpday 2c mon 2c day year format in phpphp date get weeknumber given datehow many week in this year php codeget today weekday monday phpphp date format from timestampphp date format with weekdayphp get first day of week from week numberphp get today weekdayhow to get week number from date in phptake day 2cweek and month from timestamp phpdate format day of week today phpdate 28 27ymdhisu 27 29date 28 22h 3ai secondsweek start date and end date in phpphp start of weekphp week name 3 lettersphp weeekphp date time shortcutsphp get monday of week numberget week from date phpphp date previous weekget date by week and day phpphp datetime weekday in wordphp datetime get day in weekphp find the day of the weekphp day of week to numberphp get today 27s day of weekget weekday number phpweek day phpdays by week phpphp get current week dayget date of last week phpdate his in phpcalculate the date in week or month or year phpphp date 28 27w 27 29date format phpfull day name php dateecho day phpphp get current week day numberphp short date formatend date in the week phpdate formats in phpmonday this week datetime phpget day of the week calendar phpphp datetime format weekday in wordsphp date this monthephp date function get day of week php date 28 29 week days full lengthphp get week number by datephp get week first day name from week numberphp date weekdaydate formant phpdate ymd phpday name three only date phpphp how to get date of sunday by week numberphp date with day namehow to get bettweed day with number week phpprint days by week number php php get week number from datedate php 3e 3ddate 28 22h 3ai 3as 22 29ph datephp date format write hphp find date by next day of weekphp get week start and end datedate inphpdayofweek in phpphp get list of date one week agophp get date from week number and daya 24t phpphp get year monthphp date function show month in numbersget week days from date in phpphp get current day and monthphp get day stringphp date using a variablephp datetime get last day of weekphp date get days of weekphp week number last weekfind the within this week or month year phpphp iso date when postedphp datetime last weekphp get current day of a week in phpget only 4 week weekend days in phpphp datadateformat h 3ai 3asdate 22h 22 php formatget first day of a week phpphp date week number starting sundayphp get day of week from datephph date minu8tesy m dth 3aget nearest day of week phpphp date functiondate to current week date phpget week number date in phpphp date week numberdate php yearmoi en cours php datetimephp week day of dateget day of month phpfmy date format phpopml date format phpphp days until weekday 25d date format phpget 4 days of week in phpdate 28 27his 27 29 phpphp dayofweekphp number to weekdayget monday of current week phpphp seconds to date englishphp get daysphp time date and dayphp date nophp datye formatphp date day name and moth namepython datetime check weekendphp date dayphp display weekphp date iphp day of week 0how to get total week of the year in php 5cphp get week range from datephp get current week numberphp date stringphp date number of weekdayget day in same week as today phpphp get weekday numberphp code to display all date for week week 12 2c 2021php date to day of weekdata php formatphp get 1 week datehow to get this week date in phpphp current day of weekphp check week numbermonth date year format phpphp get daypgp date 28 29php get days of weekphp date isophp date day of the weekconvert datetime to day of week phpdate word phpphp print day of weekweekday php datephp date format weekdayhow to find weekday from date in phph 3a i 3a sget week number from month php get the day of the week phpdatetime in phpget week days in phpget last day in week phpdate 28 27y m d h 3ai 3as 27 29php date without leading zerophp week number to datedate operations phphow to get week number of month phpphp 3 letter dayweek date formate in phpphp get first day of weekphp week start datephp get the next day of the week in timestampget weekday phpdatetime start of week phpphp display days of the weekget week with php datefunction of date like sep 07 year can 27t display in php string in variabledate array phpnew date y phpphp day number of yearhow to get the current week in phpdate format phpphp date formathow to check week is in current month phpweekday in phpphp datephp check if datetime is weekemdmonday this week phpphp date weekphp get week number of date rangephp set day of weekphp date 28 29 d 2fm 2fy h 3aihow to get day of the week in phptoday is weekday phpget date of a day in the 4th week of a year using phpphp get current week monthdate to string phpunderstanding date 28u 29 phpphp get day in datephp day of the week in wordscheck day within phpget day of the week phpphp week of dateata date format in phpcheck day of week phpfind days not come in week in phpget week from now date phpdate year phpphp 3 digit dayphp check day of the weekphp date format with timezonedate one week before phphow to get week start date and end date in phpwhitch day of the week is it phphow to get day of the week phpshow date php by lettersis date within the week phpweek number get in php th high dates format phpget date based on weekday phpphp get this week sundayphp date start of weekdate and time in phpphp date now 1 weekphp date format to tget 4 dates of week phpphp date format name of monthphp weeknhumber date 3c 3fphp 24i 3dnew datetime 28 29 3b echo 24date 3eformat 28 27l 2cf 2cjs 2cy 27 29 3b 3f 3e php date format to an 2020get week from date in phpphp get week of yearget specific day from current week phpiso time format phpphp date day of the weekphp calculate weekdayget current week phpget date current week phpphp code to know days of the weekhow we make week day by date phpphp get week first day name from datehow to get next week dates phpdate 25a phpphp day namephp fate formattedphp echo day of the week long nameconvert days into week day in phpphp date wordsphp to find 1 week before todayphp get day of week from datetimeget date week phpdate a week from now phpget week of date phpphp timestamp week yearget month year from week numbers phpphp get day number of weekphp date docshow to count number of weekday in a month php till datedate 28 27n 27 29every day of week dates phpget a week from a date function phpphp get monday of current weekiso 8601 date in phphow to check weach day of the week in phpget week number 28in the year 29 period of time phpphp program to accept week number and print week dayphp week of monthget the current week day phpdate 28u 29 phpget current weekday phpget week day phpphp weekdatephp get week day nameget week day from date phpdate next week phpget week number of month from date phpphp get week of monthsphp raw date formatphp net datehow to get calendar week days from date in phpget lsat day of a week phpmonday of current week phphow to get the week number for given date in phpday of week php datetimephp date format examples with week dayweek of the day phpphp type date0 day of the week in phpphp format timestampphp day of the weekget day nuumber of the week from given date phphow to week days in phpphp date as momentumphp get weekdayphp datetime get day of weekh 2a phpget number of day week phphow to get this week date in php start to mordayget day of week from date phpphp list week days for a specified periodphp date formattinghtimestamp from formatted date phphphp dateget the days of current week phpdata format phpget week day number phpget date from week number in phpfind week no of a year phpphp last day of weekphp date referenceday name in phpdate php formatphp how to know date day of the weekphp get day of the week in wordsphp date imephp datetime format weekdayadd week to date in php 24time 3d date 28 27r 27 29 phphow to get week number from date phpget number of day from day name phpphp month numberphp get week number of datehow to get weekend from given weekes in phpcalculate date from week number in phphow to get day of the week from year month and day in phpphp check if it is a weekdaydate in php get week dayget week day in phpphp start of this weekhow to get day of the week according to date in phppdate day phpphp get day number of the weekphp date number day of weekdatetime last week phpphp date day stringdate minutes phpget date after one week in phpget current day of the week phpphp date function get date 1 week agof d phpphp datetime 2b 1 weekphp date get week dayphp 3aget week number from current date 24date 3eformat 28 22d 22 29php display yearpgp date dayweek of year phpprint days of the week in phpphp determine first day of weekhow to get current week in phpphp return day of weekphp get date by week and daynumberphp get date from week number and yearhow to get week in a year phpget weekday rom date phpphp get week of the monthfind week first day and last day of week in phpphp now dayofweekget week 28in the year 29 in month phpphp date 28 27y m d 27 29php print date prettyphp date number day of week from datephp time of dayphp echo day month week and yeardate 27f 27 what is itphp full day of week namelast day of week phpget date of week from datetime phpphp now 28 29 3edayofweekphp date tphp number of day in weekphp date y m d hmsget day from date phpget dates of current week phpget number of weekday phphow to get this week date in php start to mondayphp get date 1 week from datephp check weekday of datephp full dateget weekday from date string phpfetch all dates for current week in phpdisplay current week in phpphp first day weekweek number of year in php formatphp get all week daysnew date pgpfor each day in the week phpwhat week of the year based on date phpday of week by date phpecho date display week days phpphp datetime weekdayday of week echo 24 28date 2b 25f 25h 25m 25s 29php count days of week in a monthphp date weekday of week phpcurrent week and last week in phpdate 28 22l 22 29php get day of the week from dateformat date f 24data 3d 27 27 3b phphget week day number php in starting mondayphp get week number from monthwhat field type is date in phpphp date get week number by datefull day name php dphp datetime format get day of weekphp day of week numberget number day in week phpget the current week phpday of week php dateget day of the week datetime phpdate funciton in php8get day of week name from datetime in phpgetdayofweek phpphp date days of weekconvert weekday to date phpphp date or dateget the day of the week phpdisplay week phpphp weekdaydate day mini phpdate to weekday full name in phpdate 22w 22date 28 29 in phpget day in week phpphp list of days of weekphp datetime get this weekget number week for number day phpdate first day of week phpphp date short day of week languagehow to get first day of week in phpget week number from date phpphp datend date from week number in phpget week day name phpget the monday of current week in phpphp date 28 22n 22 29php get all dates of current weekhow to get current day of week in phpphp check if date is week agoget date out of year week phphow to get week number in phpphp get week number starting mondayget week start date and end date from week number in phpdate php weekprint days in php by week number php get date start this weekphp formate timehow to get day phpphp get current week days datphp date to number of day in yearphp next day of weekphp get days of week numberphp get week number of year from timestampdate manual phpwww php net e2 80 ba manual e2 80 ba function date phpdate 28 string 24formdate 28 22h 3ai 3asa 22 29php month formatdate 28 22l 22 phpday of the week php using datetimeweek day in phpdate 28 27r 27 29 phpget days of week in phphphp get day monday of weekformat php timestampphp date 28 29y m d h 3ai 3asphp weekday from datephp date format day of weekdate prints but returns 0 phpphp date 28 27y 27 29php week of a date