Skip to Content
0
Former Member
Dec 10, 2006 at 08:32 AM

How to get date of previous months

24 Views

Hi,

I want to know if I'm having todays date, how get I get a date just knowing the difference on month.

For Exmp.

Let diff is of 12 months.

i.e. if 29/02/2004 should give 28/02/2003

and 28/02/2003 should return 28/02/2002

and 01/03/2005 return 01/03/2004