generate dates

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
faklaf
Forum Newbie
Posts: 2
Joined: Wed Dec 10, 2008 3:48 am

generate dates

Post by faklaf »

Hi ,

I've got problem with php script. I'm trying generate weeks with any result :(
The script must generate weeks between march and september and first day is sunday.
The output will look's like this

2009-03-03 - 2009-03-10
2009-03-10 - 2009-03-17
2009-03-17 - 2009-03-24

Thanks a lot with any help
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: generate dates

Post by aceconcepts »

take a look at

Code: Select all

 
mktime();
//and
strtotime();
 
faklaf
Forum Newbie
Posts: 2
Joined: Wed Dec 10, 2008 3:48 am

Re: generate dates

Post by faklaf »

Thx, i know about this. But i haven't idea how to do it :(
Post Reply