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

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

How To Install LEX and YACC in Linux or Ubuntu

How to Implement Two - Pass Assembler in C / Assembler C Code