Compare 2 Dates

Discussion in 'PHP' started by deriklogov, Jul 26, 2009.

  1. #1
    Hey, I got a date stored in DB in format: 2009-07-26 09:20:54 .

    I need to compare that date with current date (now), so I think I need ti

    subtract today-date=difference

    what is the best way to do that ?

    Thanks
     
    deriklogov, Jul 26, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Bohra, Jul 26, 2009 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #3
    EricBruggema, Jul 29, 2009 IP