Okay, I guess I will try to answer your question with a few guesses as to what you need to do.
I am assuming you can't hard code the date into your PHP because it is being supplied by an outside source (such as a user's browser). This date, I am assuming, will not arrive in a way that is immediately friendly to PHP (though you could code it so that it is, such as building a drop-down list that has a value of something like '22-2-2005', but displays it to the user in a friendlier manner). As long as the user doesn't supply something potentially ambiguous (2-1-2005 may mean February 2, 2005 or January 2, 2005 to the user), this should be the query you wish to use:
// $str_time is the date in question you are searching for. It can be in any format.
$timestamp = strtotime($str_time); // parse the string into a useable timestamp
$sql_date = date("d-m-Y",$timestamp); // format the timestamp into the format you specified
$sql = "SELECT * FROM test WHERE date = '$sql_date'"; // build the query
I hope this leaves you close to your goal.