Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2010
    Posts
    124
    Thanks
    6
    Thanked 0 Times in 0 Posts

    equaling 2 date variables problem

    i have today date and ... i`m getting a date from


    $date=date('d-m-j');

    i have anoither date

    $date1="2013-10-29";


    if($date == $date1)
    {


    }

    this will giving error

    please give me a solution for this

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    See: http://php.net/manual/en/function.date.php

    $date=date('Y-m-d');
    $date1="2013-10-29";
    if($date == $date1)
    {
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •