sqlite 获取当前日期作为整数 yyyyMMdd
sqlite get current date as integer yyyyMMdd
有什么方法可以将当前日期作为整数,格式为 yyyyMMdd 吗?
已经尝试过:
select date ('now')
但是结果是2015-06-12
谢谢!
SELECT CAST(strftime('%Y%m%d', 'now') AS int);
有什么方法可以将当前日期作为整数,格式为 yyyyMMdd 吗?
已经尝试过:
select date ('now')
但是结果是2015-06-12
谢谢!
SELECT CAST(strftime('%Y%m%d', 'now') AS int);