I want to find the difference between the two date time fields and need to update in other duration field

venkataci
Kilo Contributor

I want to find the difference between the two date time fields and need to update in other duration field.

 

find_real_file.png   Log in Time and Logoff time are Date/ Time fields and Total Log time is duration field.

 

I have written server side script for this to work calling a glide ajax call. But it is not calculating the difference.

 

Client script:

find_real_file.png

 

 

Script include is:

 

find_real_file.png

 

Please help me to resolve it.

 

 

Thanks in Advance.

40 REPLIES 40

Just Now tested

 

find_real_file.png

Yes i tried with yours..

 

small correction..

 

Here i am using  Login and Logout are Duration fields but you are using Date/Time fields.

 

So i am getting a different values..even the years also got changed.find_real_file.png

 

i modified field names as per my table. And executed your code. So i am seeing these values.

Hi Venkat Login Value greater than the logout value in ur testing ur using the january month try with different days and months i hope this will works fine 

 

I need one clarification here filnally what do u want duration?? or just like days hours minites seconds?

 

Thanks&Regards

Venkateswarlu K

 

 

 

 

 

 

 

Hi venkat,

The values which i entered in Login Time and Logoff time are different to the displayed values.

And i entered Login time less than Logoff time only.

 

And i entered march, but not january. 

Hi Venkat

Did u got the solution for this thread if yes then close the thread by making correct if no tell me how can we help you in better way

 

Thanks & Regards

Venkateswarlu K