Skip to Content
0
Former Member
Mar 04, 2009 at 10:55 AM

FM to get the time difference between two date in hours minutes and seconds

9307 Views

Hi,

Can anyone please suggest me an FM to get the difference between two dates in hh:mm:ss format.

It is also poss that both the dates mentioned are same and there is just a few seconds difference.

say: date1 = 01/01/2009

date2 = 01/01/2009

time1 = 12:10:10

time2 = 12:10:09

in this case I want the o/p as 00:00:01.

I have already used the FM 'SD_CALC_DURATION_FROM_DATETIME' but it returns the differnce only in terms of hh:mm.

So can any one please advice on the same.

Thanks,

Arti