[SOLVED] Calendar Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adresaNET
Forum Newbie
Posts: 3
Joined: Sun Mar 06, 2005 8:06 am
Location: Sibiu
Contact:

[SOLVED] Calendar Help

Post by adresaNET »

Hi,

Please help me with the following:
I have a form with a few fields.
I have a start_date and an end_date :
Start Date: March,6, 2005
End Date: April, 23, 2005
From this interval I have to extract all numbers of days for sunday:
So I need 6,13,20,27(all sunday from march) and 3,10,17 (all sunday from april)
Can you help me ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

strtotime() can retrieve a sunday relative to a date, and increment to the next available sunday.
adresaNET
Forum Newbie
Posts: 3
Joined: Sun Mar 06, 2005 8:06 am
Location: Sibiu
Contact:

Post by adresaNET »

Can you give me an example, please ? :?:
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

the manual has plenty. :roll:
adresaNET
Forum Newbie
Posts: 3
Joined: Sun Mar 06, 2005 8:06 am
Location: Sibiu
Contact:

Post by adresaNET »

Thanks for your help. I finished this task.
See ya!
Post Reply