Is there an simple way to get the date of 11 months ago, in Javascript or even with JQuery involved. Equivalent of using PHP’s strtotime('-11 month')
. I know you can easily add/substract days in JS’s Date
object, but months are a little more complicated without involving all the days of each month.
Advertisement
Answer
Maybe this’ll help you out.
http://phpjs.org/functions/strtotime/
PHPJS is an amazing site, wich has a lot more than just this. And it’s all plain JS, no jQuery.