dexie - How to find entries between two dates?
问题描述
I tried to filter my indexdb by the start_date
index, which is da Date Object. But this does not seem to work:
db.timetrackingitems
.where("start_date")
.between(
dayjs(
`${year}-${
month < 10
? `0${month}`
: month
}-01 00:00:00`,
).date(),
dayjs(
`${year}-${
month < 10
? `0${month}`
: month
}-31 00:00:00`,
).date(),
true,
true,
)
.toArray();
Is there a way to filter entries between two dates? Or is this not possible?
解决方案
推荐阅读
- ios - 应用程序在后台时来自 iOS 推送通知操作的 Http 请求
- xcode - 撤销钥匙串中的所有证书后,命令 PhaseScriptExecution 以非零退出代码失败
- android - 未找到 Android Studio 4.0.1 默认活动
- c# - 外部组件抛出异常
- matlab - 在 Simulink 中查找和替换
- c# - 如何在 C# 中使用 Selenium 在 aria-hidden=“true” 的元素上发送密钥
- javascript - 什么!!在 JS 中做什么?
- rest - IErrorHandler 中的响应内容类型错误
- matlab - 如何使用for循环(matlab)对n个数字(pcolor)进行子图绘制
- database - 熊猫的意思是相同的元素