and all in between

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
imatrox05
Forum Newbie
Posts: 16
Joined: Wed Mar 29, 2006 8:44 pm

and all in between

Post by imatrox05 »

Hi,

I need to display all the calendar dates between 2 given dates.

Example if the MIN Date is 1st march and Max Date is 22nd March

I want all the dates from 1 through 22 to be displayed.

How can i get this done?.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

A simple loop that iterates days from the starting point until the end. This will often use strtotime() and of course date()
Post Reply