Skip to main content
Answer

Function to get difference in time

  • November 23, 2022
  • 2 replies
  • 609 views

Michael Ndungi
Varsity I
Forum|alt.badge.img

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],[SOOrder.CreatedDateTime])*-1

 

Any suggestions in how to go along with this?

Best answer by Naveen Boga

Hi @development93  Can you please try below and verify.

 

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

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • November 23, 2022

Hi @development93  Can you please try below and verify.

 

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


Michael Ndungi
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • November 24, 2022

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?