Get the parts of the current date into workable variables….

 

        $cday = date(‘d’,time());
        $cmonth = date(‘m’,time());
        $cyear = date(‘Y’,time());