A
A
Alexander2016-08-25 15:51:41
MySQL
Alexander, 2016-08-25 15:51:41

How to select all rows after a certain date in yii2 active record?

There is a table with a column with date and time in timestamp format. It is necessary with the help of active record to make a selection of all records with a date greater than the specified one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Александр, 2016-08-25
@LordGuard

Нашёл решение: $Statistics = Statistics::find()->where(['>=', 'UNIX_TIMESTAMP(date)', 1472119200])->all();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question