difference of dates

  • Hi,

    I need to get difference between dates. That is the time difference between todays date and a particular date.

    for xample

    (getdate()-(2010-05-28 13:58:00.000))=xxxxxx minutes

    i tried to figure it out but couldnt. So please help me out with this

  • check out DATEDIFF on books online

  • You can use DateDiff

    like this

    SELECT DATEDIFF(mi,'2010-05-28 13:58:00.000',GETDATE())

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply