[edit] I just realized I posted this in the database forum by accident...very sorry, not sure how to move it out.[/edit]
I did a couple of searches for various date problems on the boards, and I've been staring at this screen all day with no luck.
I need to find out what the start and end dates (Sunday through Saturday) for a given week, month, and year are. A function that returned the start date would be ideal, since I can add 6 days to get the final date.
If I want to view week 2 of June, 2005 I would like it to return:
2005-06-12
or week 1 of June, 2005 to return:
2005-05-29 (this is the catch...).
This is for a calendar that displays from Sunday to Saturday, and the return date will be fed into a MySQL query that will display job information for all days in that week.
Thanks in advance for any suggestions!
--Eric