Displaying time since updated

Hello,

Is there a way to take the last updated time from a dataset and subtract it from the current time in order to display time since last updated?

Page in question: networkedlink.com/dining/bolton

Thanks!

Hi dreagency,

In the database, you have the a field called ‘Last Updated’ (hidden by default):


See ‘wix-data’ API to find out how to get the data sorted, then, you can sort according to ‘Last Updated’ and get the last time a recored has be updated.
Now, use Javascript Date() to get the current time, subtract, and you’re done :slight_smile:

Liran.