Page 1 of 1

[SOLVED] Calendar Help

Posted: Sun Mar 06, 2005 8:11 am
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 ?

Posted: Sun Mar 06, 2005 8:23 am
by feyd
strtotime() can retrieve a sunday relative to a date, and increment to the next available sunday.

Posted: Sun Mar 06, 2005 10:35 am
by adresaNET
Can you give me an example, please ? :?:

Posted: Sun Mar 06, 2005 11:24 am
by patrikG
the manual has plenty. :roll:

Posted: Sun Mar 06, 2005 2:26 pm
by adresaNET
Thanks for your help. I finished this task.
See ya!