Answer the question
In order to leave comments, you need to log in
How to make query with mySQL date formation?
there is a request
SELECT name_film, date( from_unixtime( created_at ) ) created_at
FROM `fl_films`
ORDER BY created_at
Answer the question
In order to leave comments, you need to log in
1. make a regular model for fl_films
2. create a class like FilmsQuery extends ActiveQuery and throw it into the init method
$this->select([
'*',
'date( from_unixtime( created_at ) ) created_at'
]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question