time difference problem

Discussion in 'Databases' started by dizyn, Jul 28, 2008.

  1. #1
    Hi all

    I want to calculate date difference between two times, i have a time like ('2008-07-28 23:59:59') and then interval in days like 7 days

    I want to add time + interval in days and then want to find difference with the current time.


    any idea....

    thank you
    dizyn
     
    dizyn, Jul 28, 2008 IP
  2. klimu

    klimu Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Select Datediff('2008-07-22 23:59:59'+ Interval 7 Day, Curdate());
     
    klimu, Jul 28, 2008 IP