Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Find number of sundays between range of date
Old 04-26-2006, 01:42 AM Find number of sundays between range of date
Junior Talker

Posts: 1
Trades: 0
Hi all


I want to find the number of sundays between two given dates.


Thanks
Mythily.
Mythily is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-26-2006, 12:38 PM Re: Find number of sundays between range of date
cdwhalley.com's Avatar
Skilled Talker

Posts: 75
Trades: 0
Are the dates given along with the day? (e.g. Monday)
cdwhalley.com is offline
Reply With Quote
View Public Profile Visit cdwhalley.com's homepage!
 
Old 04-26-2006, 01:01 PM Re: Find number of sundays between range of date
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
pseudo code

for this_date = start_date to end_date
if (date("N",this_date)) = 7
increment counter by 1
next
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Find number of sundays between range of date
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15494 seconds with 12 queries