I have order's start time and completed time as datetime, now what if i want to calculate time difference ( end time - start time ) of 2 datetime type fields to show time took to complete an order. the format of the 2 fields are same as below:
order_started_at : 2023-01-09 15:03:47
order_completed_at : 2023-01-09 15:06:08
in my MYSQL db, i have created a View and the column added to calculate time difference as:
TIMEDIFF(o
.order_completed_at
,o
.order_started_at
)
it returns time difference / elapsed which is fine enough: 00:02:21
i just want to know about how to in KoolReport when i have to calculate within a Report?
regards