I have static date and time in my site:
<h4 style="color: darkcyan;">Local Time: {{Today| date: 'medium'}}</h4>
how to make it dynamic (by minutes not seconds).
Refer below code.
public today = Date.now(); setInterval(() => { this.today = Date.now(); }, 100);
Then use like below.
<h4 style="color: darkcyan;">Local Time: {{today | date:'yyyy-MMM-dd'}}</h4>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.