Good afternoon everyone! I need a function that I enter a date and it returns me the date of the last four months, can be done in angular js or javascript, can you give me some help with this?
I want to get the last four months / year of a date for example
"Fri Sep 22 2017 14:42:35 GMT-0300"
and the output example
"Fri Sep 22 2017 14:42:35 GMT-0300",
"Fri Out 22 2017 14:42:35 GMT-0300",
"Fri Nov 22 2017 14:42:35 GMT-0300",
"Fri Dez 22 2017 14:42:35 GMT-0300"