Lets say my activation date is 1/8/2008 and will use this as the base date or billing date.
Given todays date, I need to find the last billing date. So..if todays date is 10/20/09 the start of the current cycle is 10/8/09. How do I find the current billing cycle taking into account year and month? E.g. if the current date is 1/2/2009 I need to know that 12/08/2008 was the start of the last billing cycle.
Please show code.