STR_TO_DATE in MySQL in INSERT query returns null -


the following select returns null.

select str_to_date('27/09/2016 17.51.55','%d/%m/%y %h%i%s'); 

i tried adding dots between '%h%i%s', same result.

can show me wrong here?

try this

select str_to_date('27/09/2016 17.51.55','%d/%m/%y %h.%i.%s'); 

Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -