I just wanted to display current date and time in the center of a html page inside a div class using angularjs.
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-tek">
<a class="navbar-brand mr-auto mr-lg-0" href="#">ZETEK EBS</a>
<button class="navbar-toggler p-0 border-0" type="button" data-toggle="offcanvas">
<span class="navbar-toggler-icon"></span>
</button>
<span>{{date | date:'yyyy-MM-dd'}}</span>
<div class="navbar-collapse offcanvas-collapse" id="navbarsExampleDefault">
</div>
</nav>
function Ctrl($scope)
{
$scope.date = new Date();
}