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

How to Create Live Search In Html Using Ajax Ad PhP - Google Live Search / Instant Search Code And Example

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