0
Guys. His query is of MYSQL. See the DEFINER Keyword.
Did you tried using STR_TO_DATE. You may follow more at below SO link.
http://stackoverflow.com/questions/10637581/mysql-date-format-dd-mm-yyyy-select-query
If this helps to address the issue, please close the thread by accepting the answer.