Hacker News new | ask | show | jobs
by asyncwords 4118 days ago
Similarly, if you prefer the American date format you can change the two $scope.text lines near the end of controllers.js to

  $scope.text = "Good " + $scope.getStateOfDay(moment().get('hour')) + ", today is " + moment().format('dddd MM/DD/YYYY') + ".";
which looks like 'Thursday 03/12/2015'; or you can change both lines to

  $scope.text = "Good " + $scope.getStateOfDay(moment().get('hour')) + ", today is " + moment().format('dddd, MMMM DD, YYYY') + ".";
which looks like 'Thursday, March 12, 2015'.