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:>
setISODate(2009, $datetime->format("W"), 6); print "Saturday:" . $datetime->format(DATE_ATOM) . "\n"; // Sunday $datetime->setISODate(2009, $datetime->format("W"), 0); print "Sunday: " . $datetime->format(DATE_ATOM) . "\n"; ?>