Riya,
In your entity, you should add an attribute to contain the datetime value. You can then create a microflow like this that updates a datetime attribute:
This microflow can be called when you click on a microflow button or other control on the page.
Hope that helps,
Mike