ag3nt42 Posted May 27, 2008 Share Posted May 27, 2008 So i'm building a calendar..I don't want to have to update this thing everyyear or keep it updated several years in advance. There should be a way to do this with code.. How do i say.. If this is Jan of 08 then the 1st of jan starts on Tuesday. If I can get that then i'll just use some math to figure out the last day. any ideas? Link to comment https://forums.phpfreaks.com/topic/107454-php-first-day-of-month-last-day-of-month/ Share on other sites More sharing options...
jonsjava Posted May 27, 2008 Share Posted May 27, 2008 there are numerous scripts in the PHP help section (the section you are currently in) that have your answer. just search. Link to comment https://forums.phpfreaks.com/topic/107454-php-first-day-of-month-last-day-of-month/#findComment-550785 Share on other sites More sharing options...
Smackie Posted May 27, 2008 Share Posted May 27, 2008 Why not take a look at some tutorials on php calendars they will show you how to accually make it where you don't have to update it. Link to comment https://forums.phpfreaks.com/topic/107454-php-first-day-of-month-last-day-of-month/#findComment-550791 Share on other sites More sharing options...
ag3nt42 Posted May 27, 2008 Author Share Posted May 27, 2008 well thats a good thought but i don't know of any calendar tutorials.. and I'm building not really a calendar the calendar is simply part of it... as for the search suggestion. I always search before asking questions cuz I hate waiting. Nothing came up in my search... but.. i alredy found the answer... you could have just said this echo "The first of this month is on a " . date("l", mktime(0, 0, 0, MONTH, 1, YEAR)); but thanx for your replys anyhow.. Link to comment https://forums.phpfreaks.com/topic/107454-php-first-day-of-month-last-day-of-month/#findComment-550793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.