Basically, my question is about finding date-ranges
From today’s date [ using date() ], I want to find
-
starting and ending date for current week
Let's assume Today: 14 July, 2011 start of week: 10 July, 2011 end of week: 16 July, 2011 -
starting and ending date for current month
Let's assume Today: 14 July, 2011 start of month: 1 July, 2011 end of month: 31 July, 2011
How can I find these dates ?
All the different parameters for
datebasically give you all you need, the rest is a tiny bit of math.