added curDate() to $rootScope