Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

str_to_date in mySQL (1 reply)

$
0
0
Hello,

Windows 10 64
WAMP 3.0.4
APACHE 2.4.18
PHP 5.6.19
mySQL 5.7.11

I don't have a lot of experience in software development but I think that everything I do is right. So if I do something wrong please help me.

I have a problem with str_to_date in mysql. For example, if I run console and type there: "select str_to_date ('20.10.2016','%d.%m.%Y');" everything ok. But if I trying to type: "select str_to_date ('10:30','%k:%i');" I have null as result:
+-------------------------------+
| str_to_date ('10:30','%k:%i') |
+-------------------------------+
| NULL |
+-------------------------------+
1 row in set, 1 warning (0.06 sec)

I tried to make same request on hosting and it works. How to resolve this problem?

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>