Modified Java Script

Do we Have any function in Modified Java Script which can calculate the past no. of days by comparing current date.

for eg. we have AddDiff function which adds number of days/month/years.

In same way can we substract no. of days minus current date.
for eg. - i have to calculate no. of employees joined the company in last 180 days from the current date.

Hi Tanmay,

Please see below function.

var date=new Date(), var prevDatte= addDate(date,ā€˜dā€™, -180)

Hi Imran,

Thank You for helping will give a try to this.