need help calculating time in javascript.

New Here ,
Apr 16, 2020

Copy link to clipboard

Copied

Dear Adobe

 

I require assistance on a script to calculate a new time of a field. 

 

This is a navigation form that requires the user to insert a departure time in minutes, then add more time to that in aseparate field and show the result in the next field.

 

i.e.

Departing at 10:00 (field1)

Time to next waypoint = 78 miutes 

Passing next waypoint = 11:18  (field3)

 

I need to calculate field3 and display like that, preferably with AM/PM if possible.

Any advice would be appreciated, thanks.

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

29

Likes

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

need help calculating time in javascript.

New Here ,
Apr 16, 2020

Copy link to clipboard

Copied

Dear Adobe

 

I require assistance on a script to calculate a new time of a field. 

 

This is a navigation form that requires the user to insert a departure time in minutes, then add more time to that in aseparate field and show the result in the next field.

 

i.e.

Departing at 10:00 (field1)

Time to next waypoint = 78 miutes 

Passing next waypoint = 11:18  (field3)

 

I need to calculate field3 and display like that, preferably with AM/PM if possible.

Any advice would be appreciated, thanks.

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

30

Likes

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
Apr 16, 2020 0
try67 LATEST
Most Valuable Participant ,
Apr 16, 2020

Copy link to clipboard

Copied

Likes

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
Reply
Loading...
Apr 16, 2020 0