Create a secondary item like JustinG said:
Select Timestamp on update or Timestamp on change.
Also if you want the time to be displayed for example like this:
2021-05-31 08:17:45
Go to the item and then add metadata:
Add the state description:
and put this in for example: %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1tS
Then in the main UI card the code to display the formatted date for example is:
=items.Doorgarage_Doorgaragelastupdate.displayState
It will show up in the properties in OH3 if you assign the properties:
Hope that helps.