How do I format date within the Custom Button Card template?

or you could just use the example I listed and linked to…

Hi abhi. I am someone just starting out with ha. How can i add a digital clock to a custom button card? would really appreciate the help.