i have a date field in my database which has datetype as data type, how can i use active record to fetch data according to specific date range?
$model = ModelName::find()
->where(["date"=>"FROM '2015-06-21' TO '2015-06-27' ", "status"=>1])->all();