Hello Mates, Need a small help. Can anyone provide me insights or some few lines of code on how can I get month's name from providing the week and year information. Say I want to know the name of the month of 2nd week of year 2008. Any help would be greatly appreciated. Thank you.
echo date("F",strtotime("second week",mktime(0,0,0,1,0,2008)));
echos "January"
No offense, but I can't see where this is a good idea. What happens when a week starts in one month and ends in the next month?
Two matches from a search: http://www.phpbuilder.com/board/showthread.php?t=10215568&highlight=week+month+year http://www.phpbuilder.com/board/showthread.php?t=10273575&highlight=week+month+year