Create Date by subtracting time between two dates

0
What will be Mendix way to do following equivalent of JavaScript. new Date().getTime() - previousTime I want to display difference between two DateTime objects like a countdown e.g., 00:10:30 which means there is difference of 10 minutes and 30 seconds. This difference should also be stored as a DateTime object and for display purpose we can set format to HH:mm:ss
asked
1 answers
0

I would create a Java action for this because in Mendix you would need to calculate all the seconds, minutes and hours seperately. It can be done but Java would be quicker. See also stackoverflow: https://stackoverflow.com/questions/4927856/how-can-i-calculate-a-time-difference-in-java

Regards,

Ronald

 

answered