Jump to content

Insert time difference between two dates


Recommended Posts

Could anyone help with the code below. I cannot get it to work.

Thank you!!

Fields: Access_In; Access_Out, Time_Difference

Goal: Input Access_In and Access_Out -- Code inserts time difference in Time_Difference Field

DataPage Type: Submission Form, Code placed in Footer

Code:

get.ElementsByID('InsertRecordTime_Difference').value=Datediff(minute,[@field:Access_In],[@field:Access_Out])

Link to comment
Share on other sites

  • 5 years later...

Hi,

Caspio has released version 13.0 last July 2018. You can now perform a calculation in Submission Form without inserting custom js code.

Here are the links. You can check this out!

https://howto.caspio.com/release-notes/caspio-bridge-13-0/

https://howto.caspio.com/datapages/datapage-components/calculated-values/ 

 

Regards,

kristina

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...