Posts

Showing posts with the label AngularJS

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 ;