Time calculation

Hi, I’m trying to calculate the number of hours from two time values.
I’ve three fields:

  • StartTime
  • EndTime
  • TotHours

I need to calculate the number of hours from StartTime to EndTime and then update TotHours field.
I think that this operation can be done in ItemPropertyChangeListener , but how?
Please, help me…

1 Like

https://www.cuba-platform.com/discuss/t/how-to-update-fieldgroup-property-using-transient-metaproperty-entity/4420/6