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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -