here.
$access_from_date = date("YmdHis",strtotime("$date_from_month/$date_from_day/$date_from_year"));
$access_to_date = date("YmdHis",strtotime("1/1/2005"));
$query = "SELECT * FROM tablename WHERE datefield BETWEEN $access_from_date AND $access_to_date ORDER BY datefield DESC";
also, don't know if you'll find this useful or not but heres a function to convert a mysql timestamp to anything you want, it takes the same string arguments as "date()".
function parseMySQLTS($TS, $dformatStr){
$TSYEAR = substr($TS, 0, 4);
$TSMONTH= substr($TS, 5, 2);
$TSDAY = substr($TS, 7, 2);
$TSHOUR = substr($TS, 9, 2);
$TSMIN = substr($TS, 11, 2);
$TSSEC = substr($TS, 13, 2);
$TS = mktime($TSHOUR,$TSMIN,$TSSEC,$TSMONTH,$TSDAY,$TSYEAR);
$TS = date($dformatStr,$TS);
return $TS;
}