@Andrew_Fahmi Welcome to the forum.
Checkout the following doc you can use the moment library to display the date and also in your queries...to trigger the query for the button you can add an event handler in the button component.
Unfortunately, while there is a property 'text' for buttons it doesn't look like you can set that using JS. Instead, you will need to do something like this: