Formating dates with SQLite and SQLAlchemy query to get Month and Year for ploting graphs

前端 未结 0 942
小蘑菇
小蘑菇 2021-02-13 00:33

I am trying to format a datetime in SQLAlchemy like I can do in pure MYSQL:

DATE_FORMAT(datetime, \'%Y-%m\')

However, I am using SQLite as a data

相关标签:
回答
  • 消灭零回复
提交回复
热议问题