Jump to content

Dates


Canman2005

Recommended Posts

Hi all

 

Wondering if someone can help me.

 

Basically I have two dates in the format of YYYY-MM-DD, so for example I might have;

 

2007-02-23 & 2007-03-12

 

What I need to do is to work out

 

1: how many weekends there are (sat & sun)

2: how many weekdays there are (mon - fri)

3: how many total weeks there are

 

contained between the two dates I have.

 

Is this easy to do? can anyone help?

 

thanks so much

 

dave 

 

 

Link to comment
https://forums.phpfreaks.com/topic/78448-dates/
Share on other sites

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.