Skip to main content
cojelon1
Inspiring
October 17, 2018
質問

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.
  • 567 ビュー

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.

このトピックへの返信は締め切られました。

返信数 1

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.