AngularJS Example:

by Sherali Turdiyev

HTML

<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
    <div ng-controller="TodoCtrl">
        <div ng-repeat="date in dates">{{date | date:'MMM-dd'}}</div>
        <br/>
    </div>
</div>

CSS

.done-true {
    text-decoration: line-through;
    color: grey;
}

JavaScript

function TodoCtrl($scope) {

    var day = new Date(),
        next = day;
    $scope.dates = [];
    do {
        if (next.getYear() - day.getYear()) {
            $scope.dates.push(next);
            next = next.setDate(next.getDate() + 1);
        } else {
            break;
        }
    }
}