I am trying to use STR_TO_DATE
in my MySQL code, but my string does not include a day.
SELECT STR_TO_DATE('August 2020', '%M %Y')
This code returns null. I can get this function to work if I have a day in my date like:
SELECT STR_TO_DATE('August 20, 2020', '%M %d, %Y')
Is it because I'm formatting it wrong? Or does MySQL not support this functionality? If it doesn't support it is there a way around it?