S
S
skajtersen2017-07-28 12:37:24
Yii
skajtersen, 2017-07-28 12:37:24

How to change the format of the saved date?

Locally on my site, when editing the date, I see it in the format dd.mm.yyyy, after saving I see it in the same format. On the site in the global I see the date when editing in the format dd.mm.yyyy, and after saving - mm.dd.yyyy. For this reason, it is not possible to select a date whose day number is greater than 12, because a month is expected in place of the day. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-07-28
@webinar

change date format in mysql

D
Dmitry, 2017-07-28
@slo_nik

Good afternoon.
Store the date in a timestamp and there won't be any problems in the future.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question