Date help - fetch dates for Mondays between xxx and yyy?


Posted on 16th Feb 2014 07:03 pm by admin

Does anyone know the best way to do this? I have two dates, say:

2010-01-26 and 2010-05-30

and I want to return the dates of all the Mondays between them:

2010-02-01
2010-02-08
2010-02-15
....etc.

Thanks

No comments posted yet

Your Answer:

Login to answer
58 Like 40 Dislike
Previous forums Next forums
Other forums

how to timeout $doc = new DOMDocument()->load($url)
I am currently using this $doc->load($url) to fetch an rss feed.
If a feed takes long than

I am stumped
OK. Here is what I am trying to do. I have the conditions set, and if the conditions are met, I want

Email with Attachments in PHP
Hi Friends

How to send email in PHP with attachment.
I know simple mail can be sent with

PHP5 - AJAX help
I've been following the tutorial on w2schools (http://www.w3schools.com/php/php_ajax_database.asp) a

cPanel API
Hi Guys,

Need a little guidance. I'm trying to get my script to communicate with cPanel (or W

UDP server recvfrom() always returns -1? :(
Hello all,
I am getting a very strange error in my code :( I am writing a server application in C

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

remove innitial

and

tags
i am using tiny_mce as a text editor for my CMS.
buy now the problem is it add <p>

Procedural to OOP
ohn Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pri

Greek characters in php
Hi,

I'm making a script and I m using for first time greek characters.
I started to write

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash