I am sure that a lot of people asked this question but when I checked the answers it seems to me that they are wrong that what I found
var startDate = new Da
use this i think it is useful for you
var endDate=startDate.setDate(startDate.getDate() + 1);