R
R
Roman Rakzin2015-06-11 23:43:20
MySQL
Roman Rakzin, 2015-06-11 23:43:20

How to change datetime format in mysql to display as dd.mm.yyyy MM:HH?

How to change datetime format in mysql to display as dd.mm.yyyy MM:HH and not US format?
And another question. What are you using -datetime or timestamp ?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Rytikov, 2015-06-11
@chlp

datetime in mysql is stored internally in a non-American format, it is simply displayed like this by default, you cannot change it, but you can specify the format in the request:
dev.mysql.com/doc/refman/5.6/en/date-and-time-func...

I
Ilya Korablev, 2015-06-11
@swipeshot

Use TEXT then.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question