I think it would be simpler for you to use date() instead of date_format(). Date() extracts the date part of a datetime field, and supplies that date in the standard MySQL format, YYYY-MM-DD.
Anyway, read the MySQL online manual entry for date_format() (link). You'll find that your dollar-signs are not the right symbol to use.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.