Get current date using angularjs - JavaScript