DateTime Formatting AX 2012 R3

I don’t know your code, but your previous thread suggests that you’re generating SQL code. Because SQL is text, you need to convert your datetime value to text in the format expected by MySQL (you’re currently using a wrong format). You can find a concrete example in my first reply.