techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.75k stars 481 forks source link

Date Searching #809

Closed Tam2 closed 4 years ago

Tam2 commented 5 years ago

I have a collection of documents where the date is stored in the following format: "RegistrationDate":"2016-09-01T00:00:00"

I want to search based on the Year - i.e. the first 4 digits in the date, so if i pass in 2019 i want it to return all documents 2019 or later

Or if i search 2018 then all documents 2018 or later

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.