How would I find the date of the beginning of the week, and the date of the ending of the week from the week were in? So, I guess Im looking for a way to find the date of the last Monday, and the sate of the next Sunday. This also has to take into account the months.
I was first thinking of getting the current date in number form, then getting the number representation of the day of the week (1-7). Then using this I can figure out the last Monday and next Sunday. The problem comes into play when doing months. I was thinking I could simply find how many days are in the month, and then see if my new number goes below 0 / above that number, and if it does, adjust the next month correctly.
Then I was thinking I could modify mktime or date somehow. I'm not good at either of those functions, so I wouldn't know.
Any suggestions?