SCook Posted June 4, 2007 Share Posted June 4, 2007 Hi, Here is my problem: I would like to set up a graphical representation of a monthly calendar. problem: how do I determine what day of the week is the first of the month? Any suggestions on that? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/54163-help-with-calendar-dates/ Share on other sites More sharing options...
micah1701 Posted June 4, 2007 Share Posted June 4, 2007 google "php calendar class" and see what you find. something like: http://www.zend.com/zend/trick/tricks-Oct-2002.php should be helpful Quote Link to comment https://forums.phpfreaks.com/topic/54163-help-with-calendar-dates/#findComment-267786 Share on other sites More sharing options...
leap500 Posted June 4, 2007 Share Posted June 4, 2007 Hi there How about: <?php for($i=0; $i<12; $i++){ echo "First day of " . date('F, Y \i\s l', mktime(0 , 0, 0, $i, 1, 2007)) . "<br />"; } ?> This will return: First day of December, 2006 is Friday First day of January, 2007 is Monday First day of February, 2007 is Thursday First day of March, 2007 is Thursday First day of April, 2007 is Sunday First day of May, 2007 is Tuesday First day of June, 2007 is Friday First day of July, 2007 is Sunday First day of August, 2007 is Wednesday First day of September, 2007 is Saturday First day of October, 2007 is Monday First day of November, 2007 is Thursday I hope this helps. Quote Link to comment https://forums.phpfreaks.com/topic/54163-help-with-calendar-dates/#findComment-267899 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.