How can I create a date object which is less than n number of months from another date object? I am looking for something like DateAdd()
.
Example:
var objCurrentDate = new Date();
Now using objCurrentDate
, how can I create a Date
object having a date which is six months older than today's date / objCurrentDate
?