Reset button show date and time

I want to display the date and time that a button was last pressed. What is the best way to do this please

Use a script on the button to load the current date into a tag. Then display the value of that tag.

Code would look something like this:

now =
system.tag.write("path/datetag", now)

Or you can do it in one line like this:


See the user manual for more information:
Scripting Functions here:

Thank you for your help. I will try this.