Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.