【发布时间】:2018-07-05 23:18:15
【问题描述】:
在 mongodb 中,我有日期时间字段,例如“2018-01-26T16:40:19.305+05:00” 我将如何仅使用今天的日期进行过滤?我的意思是没有时间?
我的文档:
{
"pk": NumberLong("6585118137"),
"created_time": ISODate("2018-01-26T16:40:19.305+05:00"),
}
我想要类似的东西
select * from table where date(created_time) = "2018-01-26"
【问题讨论】: