• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Oct 16, 2018 Oct 16, 2018

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.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

315

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 07, 2018 Nov 07, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines