Jaelan
01-17-2005, 03:53 PM
Hey guys,
Perhaps my mind is just in sleep mode because it's monday, or perhaps I haven't worked with the date abilities of php before (or both).
I am trying to echo out the dates of the first and last of the week. Example:
Last week was 1-10-2005 to 1-16-2005
I will always be doing the week before the current week. So, is there a function that I can seed with the current date, and subtract 7 days? If not, does anyone have a way to do this, taking into account that the previous days could be in the previous months?
Any help is appreciated,
Jaelan
Perhaps my mind is just in sleep mode because it's monday, or perhaps I haven't worked with the date abilities of php before (or both).
I am trying to echo out the dates of the first and last of the week. Example:
Last week was 1-10-2005 to 1-16-2005
I will always be doing the week before the current week. So, is there a function that I can seed with the current date, and subtract 7 days? If not, does anyone have a way to do this, taking into account that the previous days could be in the previous months?
Any help is appreciated,
Jaelan