Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Duration field is giving incorrect result in substrating two date and time field

$
0
0

Hi All,

 

I am working on a requirement where I need to find the difference between two date and time field.

 

Diff

    StartDateandTime

    ConfirmationDateandTime

 

I tried to take the difference directly and store in Decimal field but it was giving incorrect and wierd results .

 

Hence I created a field of type duration to store the difference of these two date field but every time the duration is giving only one result. 23:59:59

 

I even displayed the StartDateandTime directly in duration field to check if the same date is displayed there but it gave me the same 23:59:59

 

 

IncorrectDateCalculalation.png

 

Please guide . Also please share if anyone has worked on similar requirement to find the difference between two date and time field

 

Thanks

Neha


Viewing all articles
Browse latest Browse all 5512