Index: temp/trunk/data/class/SC_SelectSql.php
===================================================================
--- temp/trunk/data/class/SC_SelectSql.php	(revision 1940)
+++ temp/trunk/data/class/SC_SelectSql.php	(revision 1941)
@@ -73,6 +73,6 @@
 		$date1 = $from_year . "/" . $from_month . "/" . $from_day;
 		
-		// TO(TO¤Ï+1Æü)
-		$date2 = date("Y/m/d", strtotime(date('Y/m/d', $date1 . " + day"));
+		// TO
+		$date2 = $to_month . "/" . $to_day . "/" . $to_year;
 		
 		sfprintr($date2);
@@ -86,5 +86,5 @@
 		if( ( $from_year != "" ) && ( $from_month != "" ) && ( $from_day != "" ) && 
 			( $to_year != "" ) && ( $to_month != "" ) && ( $to_day != "" ) ) {
-			$this->setWhere( $column ." >= ? AND ". $column . " < ?" );
+			$this->setWhere( $column ." >= " . $date1 ." AND ". $column . " < date(" . $date2 . ")+1" );
 			$return = array($date1, $date2);
 		}
@@ -92,6 +92,5 @@
 		// ½ªÎ»´ü´Ö¤À¤±»ØÄê¤Î¾ì¹ç
 		if( ( $from_year == "" ) && ( $from_month == "" ) && ( $from_day == "" ) && ( $to_year != "" ) && ( $to_month != "" ) && ( $to_day != "" ) ) {
-			$this->setWhere( $column ." < ?" );
-			$return = array($date2);
+			$this->setWhere( $column ." < date(" . $date2 . ")+1");
 		}
 		return $return;
