How can I get the Sunday and Saturday of the week given a specific date?
For example:
input: Monday, September 28, 2009 output should be:>
input: Monday, September 28, 2009
output should be:>
take a look at strtotime
i.e.
strtotime('next sunday', strtotime($your_date_string));