Comparing dates...

Discussion in 'PHP' started by jkashu, Jul 25, 2008.

  1. #1
    I need to compare dates from a database is this format (2008-08-22) with the current date:

    if($dailysignup < date("Y-m-d")){ }
    PHP:
    Is this effective??
     
    jkashu, Jul 25, 2008 IP
  2. coder 525

    coder 525 Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    coder 525, Jul 25, 2008 IP
  3. jkashu

    jkashu Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks :) That sounds good.
     
    jkashu, Jul 25, 2008 IP