Datediif

Hi
I want to produce a chart that shows the time between opening a call and closing it.
I would prefer if this showed the time difference in Days, Hours, Mins.
Can I use a SQL function to return the difference between two different date fields?
Thanks
Adam

Try
date2 - date1 -- days
(date2 - date1)*24 -- hours
(date2 - date1)*24*60 -- minutes
you get the idea

Similar Messages

  • Minus in PLD

    Hi all!
    In PLD, i need to minus two field by DAY.
    EX: Field1: 23/12/2009 and field 2: 25/12/2009. Field2 - Filed1 = 2 day.
    How to do this.

    Hi Lee,
    Adda user defined filed and assign formatted search to that filed having the query as
    Select datediif(dd,field1,field2).
    Field 1 and 2 u can pick fron database .
    hope u get bit idea.
    rgds,
    Premraj

Maybe you are looking for