I have a "Date Range" Section, with these three items:-
Last full week; Last full month; Last full quarter. I want to get the data depending upon the selection of the Date Range.
This will obviously change as today's date changes. I am not sure how is this thing to be done. Please help.
Last full week; Last full month; Last full quarter. I want to get the data depending upon the selection of the Date Range.
- If today is March 8th and I click on "last full week", the date range would actually 03/01/10 - 03/06/10. The last full week starting on Sunday and ending on Saturday.
- If today is March 8th and I click on "last full month", the date range would be 02/01/10 - 03/01/10. It would go back the last full month available. March is not included because we haven't had a full month.
- If today is March 8th and I click on "last full quarter", then the date range would be 12/01/2009 - 02/01/2010. The last full quarter (months).
This will obviously change as today's date changes. I am not sure how is this thing to be done. Please help.
Comment