How to calculate Time Duration in Calculated Field?
Posted: 2020-06-16 10:04
Hi,
I'm having this situation, I wanna calculate
My calculated field now of totalTime, Data type is Time
Did I do something wrong?
Thank you for your helping!
I'm having this situation, I wanna calculate
Screenshot here: https://drive.google.com/file/d/1cG-p8N ... p=drivesdktotalTime = endDate - startDate
My calculated field now of totalTime, Data type is Time
Code: Select all
SELECT * , SEC_TO_TIME(TIMESTAMPDIFF(HOUR,`timesheet`.`endDate`,`timesheet`.`startDate`) *60) as `timesheet`.`totalTime`
FROM `timesheet`
Thank you for your helping!