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

unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_
Can anyone view my code and tell me why im getting the error:
Parse error: syntax error, unexpect

Php WordPress help
I am writing the following code for making a plugin

<?php
header("Content-Type

Using CSS to format MySQL query
Hi,

If i want to have a news page on my site, which displays all records of a table in descen

why does my session end?
my connect.php starts the session just so you know
i can navigate arround my site fine except whe

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

captcha error
I have been trying to implement a captcha in php...

here is the code..
Code: (php) [Select

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

smart reading from a text file
Hello there fellow coders, i was wondering if one of you wouldnt mind helping me with this problem i

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

simple php table loop
Hi all,

I've the following code

<?php // Create category options

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