I'm not sure about this, but I'd try
if( strcmp($delivery_dt, $receive_date) > 0 )
if( strcmp($delivery_dt, date("correct time format")) < 0)
echo "validation ok";
I'm not sure about the less and greater than values, try switching them if it doesn't work.