Skip to main content
Solved

Function to get difference in time

  • 23 November 2022
  • 2 replies
  • 443 views

Couldn’t find the function to calculate difference in time between fields in generic inquiry ie

Trying to get the time difference from when a sales order was created and when it was shipped. The only function I could get was DateDiff but it doesn’t return time only days

=DateDiff( 'd','SOShipment.ConfirmedDateTime],mSOOrder.CreatedDateTime])*-1

 

Any suggestions in how to go along with this?

2 replies

Userlevel 7
Badge +19

Hi @development93  Can you please try below and verify.

 

=DateDiff( 'MINUTE', [SOOrder.CreatedDateTime] , [SOOrder.OrderDate])

Userlevel 4
Badge

Hi @development93  Can you please try below and verify.

 

=DateDiff( 'MINUTE', [SOOrder.CreatedDateTime] , [SOOrder.OrderDate])

Is it possible for it to be displayed in Hours and Minutes format?

Reply