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:>
You use strtotime() and date():
outputs:
Input: Monday, September 28, 2009 Output: Sunday, September 27, 2009 12:00 PM - Saturday, October 3, 2009 11:59 AM