What date format use in sqlite

偶尔善良 提交于 2019-12-12 03:37:13

问题


I have a sqlite table within a column type DATE. Why doesn't this query work? I save my date in this format: dd-MM-YYYY

SELECT * FROM scadenze where data < strftime ('%d-%m-%Y', '31-03-2017') ;

回答1:


This is not one of the supported date formats. Better use yyyy-mm-dd.



来源:https://stackoverflow.com/questions/39127128/what-date-format-use-in-sqlite

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!