Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible for the MySQL function strtodate(str, format) to return null.

This can happen if the input string does not match the specified format string. If the input string cannot be parsed according to the format string, the function will return null.

For example, if the format is set to '%Y-%m-%d %H:%i:%s' and the input string is 'abc', the function will return null because it cannot be parsed according to the specified format.