Skip to main content
cojelon1
Inspiring
October 17, 2018
Question

Hi, I am trying to deduct the number of days from two calendars i.e. TodaysDate - OriginalDate = TotalDays in a java script, thank you.

  • October 17, 2018
  • 1 reply
  • 564 views

Hi, I am trying to deduct the number of days from two calendars i.e. TodaysDate - OriginalDate = TotalDays iI am looking for the java script, thank you.

This topic has been closed for replies.

1 reply

Inspiring
November 7, 2018

See the first code example at Date Arithmetic. It does the calculation in seconds, minutes, hours, days, and years. You should be able to modify the code for the result in days. Note that the calculation for the next unit is based on the previous result.