-1
I’m on a project at angle 7 that I need to present on the screen The time, I’ve used the Date'shortTime
and it doesn’t update the schedule, any suggestions?
HTML
<h3>{{ today | date:'shortTime' }}</h3>
JAVASCRIPT
today: number = Date.now();
Today with type number???
– novic
Puts the complete component declaration.
– Augusto Vasques
thanks, but I already got !! I made a function that makes this I will post
– Igor Leal Nodari
myDateTimer() { Let d = new Date(); Let t = d.toLocaleTimeString(); Document.getElementById('clock'). innerHTML = t; }
– Igor Leal Nodari