JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myapp">
    {{AssignedDate.now() | date:'yyyy-MM-dd HH:mm:ss'}}
    <hr />
    please don't use rootScope for this kind of stuff :)
</div>

JavaScript

var app = angular.module('myapp',[])

app.run(function($rootScope,$interval){
    $rootScope.AssignedDate = Date; // 'Date' could be assigned too of course:)
    
    $interval(function(){
        // nothing is required here, interval triggers digest automaticaly
    },1000)
})