Ricerca tra due date in tinyDB

Buongiorno al forum, ho creato con tiny Db un applicazione di promemoria dove memorizzo degli impegni in questo modo: 2021/05/12 Pagare bolletta Enel

Vorrei poter visualizzare, facendo una ricerca, l'intervallo tra due date, mi spiego meglio, tutto ciò che ho salvato tra una data ed un'altra.

Qualcuno mi può aiutare, ho cercato invano ma non sono riuscito a trovare nulla. Conosco il metodo for each ma non riesco ad applicarlo a quanto mi serve.

Grazie per l'eventuale aiuto.

How do you use the TinyDB tags?

  • 2021/05/12 (one tag per date?), or
  • 'REMINDERS' (all items in a list under a single tag?)

Promemoria.aia (2.8 MB)

Ciao, grazie per il tuo interessamento, uso i tag così: tutti gli elementi in un elenco sotto un unico tag

Ti allego il file aia di quanto ho realizzato. Come ti dicevo, vorrei poter visionare il promemoria da una certa data ad un'altra.

From what I can guess from your code (I only know English), you are storing all your entries under a single TinyDB tag as a list, with each entry a text string starting with the date in format yyyy/mm/dd, good for text sorting.

To filter the list by date range, add 2 Date Pickers, for lowest date and highest date.
Format the two selected dates the same as your entry formats, yyyy/mm/dd, and run the entire list through a filter procedure before loading the filtered data into your .Elements.

Here is a sample filter procedure you can use ...

P.S. These blocks can be dragged directly into your Blocks Editor workspace.

Test:

Grazie per il tuo aiuto, funziona :ghignando: :ghignando: :ghignando: