R
R
Roman362016-01-26 01:45:26
MySQL
Roman36, 2016-01-26 01:45:26

How to convert string to mysql date?

There is a column with dates written in the form 06/1/2014 how to make a column with dates 2014-06-1 out of this? I'm not at all special in this, I've already broken my whole head. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-01-26
@Roman36

STR_TO_DATE('1.06.2014','%d.%m.%Y')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question