Reset button show date and time

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

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.date.now()
system.tag.write("path/datetag", now)

Or you can do it in one line like this:

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

See the user manual for more information:
Scripting Functions here: https://docs.inductiveautomation.com/display/DOC79/Scripting+Functions

Thank you for your help. I will try this.