admin 1/3/2014 | |
You can use DateDiff function here. See examples at http://stackoverflow.com/questions/2633708/date-difference-in-minutes and http://msdn.microsoft.com/en-us/library/xhtyw595(v=vs.84).aspx |
G
|
georgweber author 1/8/2014 |
so this should work? |
G
|
gonzalosb 1/8/2014 |
so this should work? var ctrlsource1 = Runner.getControl(pageid, 'Acion.'); var ctrlsource2 = Runner.getControl(pageid, 'Corte'); var ctrldiff = Runner.getControl(pageid, 'Tempo'); function func() { ctrldiff.setValue(datediff("n",ctrlsource2.getValue(),ctrlsource1.getValue())) }; ctrlsource2.on('keyup', func);
|
G
|
georgweber author 1/9/2014 |
Ok, Thank you. I have changed this. Now it´s look like this |
admin 1/9/2014 | |
There is such function as date() in Javascript and this is why it says "'date' not defined" |