How to change MySQL date format for database?

前端 未结 6 1652
执念已碎
执念已碎 2020-12-18 07:57

We are using a MySQL database with FileMaker. It appears that when FileMaker is reading the MySQL tables, it will only accept dates in the format of m/d/y.

Is there

6条回答
  •  北海茫月
    2020-12-18 08:24

    SELECT COUNT(field_name) AS count_it FROM table_name WHERE DATE_FORMAT(date_field,'%Y-%m-%d') = DATE_FORMAT(CURDATE(), '%Y-%m-%d')-- to count records for today.
    

提交回复
热议问题