SyntaxFix
Write A Post
Hire A Developer
Questions
You can format the datetime to the Y-M-D portion:
DATE_FORMAT(datetime, '%Y-%m-%d')