![]() |
HJB 7/27/2021 |
Date / Time Handling in web applications ... for inspiration ..., above URL content owns TWO examples in regard to |
![]() |
mbintex 7/27/2021 |
M
|
Mark Kramer 8/1/2021 |
For insperation. Set variables acording to your needs. The code goes in the Javascript OnLoad event for the corresponding page. var ctrlDate = Runner.getControl(pageid,'TimeOut'); var DO = new Date(CD.getValue()); var CT = new Date(ctrlDate.getValue()); var TT = Runner.getControl(pageid,'Totaltime'); // get total seconds between the times // calculate (and subtract) whole days // calculate (and subtract) whole hours // calculate (and subtract) whole minutes // what's left is seconds //tto =(days)+" day(s) "+(hours)+" hr(s) "+(minutes)+" min "+(seconds)+" sec " function func(){ tto =(hours)+" hr(s) "+(minutes)+" min " CD.on('keyup', func); |