I have tried this but couldn’t compile correctly.
{:title [:b "📄 近期文档" ]
:query [:find (pull ?p [*])
:in $ ?start ?end
:where
[(java.util.Date/parse ?start) ?s]
[(java.util.Date/parse ?end) ?e]
[?p :block/created-at ?d]
[(>= ?d ?s)]
[(<= ?d ?e)]
]
:inputs [ "1 Jan 2023" "7 Jan 2023"]
:collapsed? true
}
There are a lot of examples about query blocks or journals between dates or query pages use constant like :end-of-today-ms
but really not my case.
I found some related topics in the community, list here to show my current progress:
- Using Clojure and Java in an advanced query?
- How to compare with unix time (timestamps) and date time?
https://discuss.logseq.com/t/list-of-recently-created-modified-pages-timestamp-issues/5342
Appreciate very much for your help