Date Format In Mysql Query Optimization