Hereby i am the following inputs:
Months to be separated by : 4 months
Will have the date with month and year: 07-05-2011.
Now i need to add months by 4 using JavaScript or jquery. How can this be done?
For example:
I am having the date as : 01-01-2011 and the duration is 4
My output should be:
01-12-2010
01-04-2011
01-08-2011
01-12-2011
For example if it is:
I am having the date as : 01-06-2011 and the duration is 4
My output should be:
01-06-2011
01-10-2011
01-02-2012
01-06-2012
Thanks in advance
Here you have:
Hope this helps. Cheers