python72 Posted November 23, 2010 Share Posted November 23, 2010 I need to know which day of week was on particular date, so for example I would provide date lets say "Nov 22, 2010" formatted as needed and the function would return "Monday", is there a function in php to do that or how can it be done? Link to comment https://forums.phpfreaks.com/topic/219527-function-which-returns-day-of-week-based-on-date/ Share on other sites More sharing options...
Pikachu2000 Posted November 23, 2010 Share Posted November 23, 2010 echo date('l', strtotime('Nov 22, 2010')) EDIT: Where is this date coming from? It's possible you can just return the day name at the same time the date is retrieved. Link to comment https://forums.phpfreaks.com/topic/219527-function-which-returns-day-of-week-based-on-date/#findComment-1138224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.