How would I convert this from js to C#. I've looked but cant find anything useful.
var endDate = new DateTime();
endDate.setDate(startDateTime.getDate() + days);
endDate.setHours(endDateTime.getHours(), endDateTime.getMinutes(), endDateTime.getSeconds());