Skip to main content
Solved

Function to get difference in time

  • November 23, 2022
  • 2 replies
  • 676 views
  • Translate All

Michael Ndungipartnerhold
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])

View original

2 replies

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

Hi @development93  Can you please try below and verify.

 

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

Translate

Michael Ndungipartnerhold
Varsity I
Forum|alt.badge.img

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?

Translate