Getting click time and save in a database.

Hi everyone!

First of all, I am very beginner, and thanks for all of your helps.
I have several buttons, and want to save click real time on a database. I tried to put some function inside of onClick event, but it did not work. I have two basic issues:
1-how to get click real time and
2- how to save it in a database?

Could you please give me some hints how to do this?

Hello.

  1. To get click real time, you can assign event listener to element. Example
  2. You can use wixData. All elements stored in collections will have _createdDate field.