Indexing: include the date column in the sql_query of source.
Also set the date as sql_attr_unit
PHP: $cl->SetFilterRange ( $attribute, $min, $max, $exclude=false )