N
N
nnkrasovok2019-05-02 20:06:31
Yii
nnkrasovok, 2019-05-02 20:06:31

How to change date format via migrations?

Writes only such date format yyyy-mm-dd to the database. And I need dd-mm-yyyy.
Is it possible to somehow change the date format through migrations?
I just have it configured that the user enters data in the form dd-mm-yyyy, and the database swears that it cannot write such a format.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question