Answer the question
In order to leave comments, you need to log in
How to organize search by date?
There is a
datatime= 2018.05.18 format field,
how can I find the date range from 05/01/2018 to 05/20/2018 with an Activerecord query?
Answer the question
In order to leave comments, you need to log in
$query = TvojaModel::find()
->where(['>=', $column_1, '2018-05-01'])
->andWhere(['<=', $column_2, '2018-05-20'])
->all();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question