Index: branches/dev/data/class/SC_SelectSql.php
===================================================================
--- branches/dev/data/class/SC_SelectSql.php	(revision 17)
+++ branches/dev/data/class/SC_SelectSql.php	(revision 226)
@@ -77,5 +77,7 @@
 		
 		// TO
-		$date2 = $to_year . "/" . $to_month . "/" . $to_day;
+		$date2 = mktime (0, 0, 0, $to_month, $to_day,  $to_year);
+		$date2 = $date2 + 86400;
+		$date2 = date('y/m/d', $date2);
 		
 		// ³«»Ï´ü´Ö¤À¤±»ØÄê¤Î¾ì¹ç
@@ -84,13 +86,13 @@
 		}
 
-		//¡¡³«»Ï¢·½ªÎ»
+		//¡¡³«»Ï¡Á½ªÎ»
 		if( ( $from_year != "" ) && ( $from_month != "" ) && ( $from_day != "" ) && 
 			( $to_year != "" ) && ( $to_month != "" ) && ( $to_day != "" ) ) {
-			$this->setWhere( $column ." >= '" . $date1 ."' AND ". $column . " < date('" . $date2 . "')+1" );
+			$this->setWhere( $column ." >= '" . $date1 ."' AND ". $column . " < date('" . $date2 . "')" );
 		}
 
 		// ½ªÎ»´ü´Ö¤À¤±»ØÄê¤Î¾ì¹ç
 		if( ( $from_year == "" ) && ( $from_month == "" ) && ( $from_day == "" ) && ( $to_year != "" ) && ( $to_month != "" ) && ( $to_day != "" ) ) {
-			$this->setWhere( $column ." < date('" . $date2 . "')+1");
+			$this->setWhere( $column ." < date('" . $date2 . "')");
 		}
 		return $return;
