这是我的问题:我的 sqlite 数据库中有一些日期。我想要做的是以下内容:
SELECT dates FROM Table1 WHERE dates > date('now','-1 month');
结果是:
2013-02-21 12:04:22
2013-02-28 12:04:22
2013-02-01 12:04:22
如何将这些日期转换为以下内容:
2013-02-21 12:04:22 become 2 (day 2 of the month)
2013-02-28 12:04:22 become 9 (day 9 of the month)
2013-03-01 12:04:22 become 10(day 10 of the month)
先感谢您