Jump to content

php first day of month, last day of month..


ag3nt42

Recommended Posts

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?

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..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.