How to get the current time in AnglarJS and convert it in to milliseconds

Here is how you can get the current system time and convert it in to milliseconds in the AngularJS-

var t = new Date();
var time = new Date(t).getTime();
$scope.time = time;

Comments

Popular posts from this blog

How To Install LEX and YACC in Linux or Ubuntu

Lex Program To Check The Syntax of For Loop

Listing/Delisting of an article in to an Assortment in SAP SCM Retail