Date and time recording

Buongiorno, vorrei fare un'app dove premendo un pulsante mi registra data e ora di quel momento preciso. per poi salvarla in qualche modo, è fattibile

Yes, of course. Use a clock component to get the date and time when the button is clicked, then save this piece of data to the data storage of your choice: a file, tinydb, or online database (cloudDB / Firebase/Other)

1 Like

C'è la possibilita di avere un esempio per la parte a blocchi?

Have you looked at the documentation for the clock component ?

1 Like

Si, ma non capisco come mettere il pulsante e come registrarlo sul CloudDB1

See attached a simple aia project

RecordADateAndTime.aia (2.6 KB)

note: the date and time recorded is a string....

ok, fatto, ma dove mi salva i dati quando clicco i due tasti?

:question:
Explain in more detail where your problem is and what the goal is.

Io vorrei che premendo i due pulsanti mi memorizzi sul telefono data e ora, cosi io posso estrarre i dati quando voglio con il computer.

And where is the problem? Take a closer look at my blocks.
Apply these blocks to your purpose and post your blocks so we can see what you intend to do.

1 Like

See also here:

Ho cercato sul forum, ma non ho trovato niente che possa aiutarmi.
La versione Android del mio telefono è la 11.
I pulsanti funzionano, ma non capisco dove salva i dati nel telefono, il mio problema e questo.
Allego i blocchi

:question: -

Describe the steps exactly, like this:

  1. Click on Date/TimePicker
  2. select date / time
  3. store data (which data?) in TinyDB
  4. do this...
  5. do that...
    ...

Expected result: ... (?)

And post all relevant blocks.

Try this one: DateTimeTinyDB.aia (4.4 KB)

Screen2: