# Day Template

The Calendar enables you to customize the rendered day for the `month` view.

The following example demonstrates how to create a Calendar by using a custom template.

```Razor HtmlHelper
    @(Html.Kendo().Calendar()
                .Name("calendar")
                .MonthTemplate(x=> x.Content("<div class='custom'><#=data.value#></div>")))
```

```Razor TagHelper
    <kendo-calendar name="calendar">
        <month content="<div class='custom'><#=data.value#></div>"/>
    </kendo-calendar>
```

The template wraps the `value` in a `<div>` HTML element. The structure of the `data` object that is passed to the template function:

```JS
    data = {
        date: date, // A date object corresponding to the current cell.
        title: kendo.toString(date, "D"),
        value: date.getDate(),
        dateString: "2011/0/1" // A formatted date based on the yyyy/MM/dd format and a zero-based month.
    };
```

## See Also

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