javascript get current date in utc code example
Example 1: how to get utc time in angular
var d = new Date();
var n = d.getUTCDate();
Example 2: Javascript format date / time
var date = new Date('2014-8-20');
console.log((date.getMonth()+1) + '/' + date.getDate() + '/' + date.getFullYear());