# Week Numbers

You can configure the Calendar to display the week number and also use the week number template to customize the cells in the **Week** column.

## Rendering of Week Numbers

The `weekNumber` option enables the Calendar to display the week number on an annual base to the left side of month view and as a separate column.

```Razor HtmlHelper
    @(Html.Kendo().Calendar()
                .Name("calendar")
                .WeekNumber(true)))
```

```Razor TagHelper
    <kendo-calendar name="calendar" week-number="true">
    </kendo-calendar>
```

## Customizing Week Column Cells

The week-number template intends to customize the cells in the **Week** column. By default, the Calendar renders the calculated week of the year.

The Calendar provides the following properties in the `data` object:

* `currentDate`—Returns the first date of the current week.
* `weekNumber`—The calculated week number.

You can use these properties in the template to make additional calculations.

```Razor HtmlHelper
    @(Html.Kendo().Calendar()
        .Name("calendar")
        .WeekNumber()
        .MonthTemplate(x=> x.WeekNumber("<i>#= data.weekNumber #</i>"))
        )
```

```Razor TagHelper
    <kendo-calendar name="calendar" week-number="true">
        <month week-number="<i>#= data.weekNumber #</i>" />
    </kendo-calendar>
```

## See Also

* [Rendering the Week Column in the Calendar HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/calendar/week-column)
* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/calendar)
