# MonthCalendarExtenestions

Namespace: **Wisej.Web.Markup**

Assembly: **Wisej.Framework** (4.0.0.0)

Adds [fluent markup](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/markup) extension methods to the [MonthCalendar](/api/wisej.web/editors/monthcalendar.md) class.

{% tabs %}
{% tab title="C#" %}

```csharp
public class MonthCalendarExtenestions
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class MonthCalendarExtenestions
```

{% endtab %}
{% endtabs %}

## Methods

### ![](/files/lIX317sDtMTZJBi9oSIx) AnnuallyBoldedDates\<TMonthCalendar>(monthCalendar, dates)

Sets the AnnuallyBoldedDates property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                           |
| ------------------ | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).           |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the AnnuallyBoldedDates property.                                                 |
| **dates**          | [DateTime\[\]](https://docs.microsoft.com/dotnet/api/system.datetime)                            | An array of [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime) representing the annually bolded dates. |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated AnnuallyBoldedDates property.

This method allows you to specify dates that are bolded every year in the month calendar.

```csharp

myMonthCalendar.AnnuallyBoldedDates(new DateTime(2000, 1, 1), new DateTime(2000, 12, 25));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) BoldedDates\<TMonthCalendar>(monthCalendar, dates)

Sets the BoldedDates property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                  |
| ------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).  |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the BoldedDates property.                                                |
| **dates**          | [DateTime\[\]](https://docs.microsoft.com/dotnet/api/system.datetime)                            | An array of [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime) representing the bolded dates. |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated BoldedDates property.

This method allows you to specify specific dates that are bolded in the month calendar.

```csharp

myMonthCalendar.BoldedDates(new DateTime(2023, 6, 1), new DateTime(2023, 7, 4));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) BorderStyle\<TMonthCalendar>(monthCalendar, borderStyle)

Sets the BorderStyle property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the BorderStyle property.                                               |
| **borderStyle**    | [BorderStyle](/api/wisej.web/enumerations/wisej.web.borderstyle.md)                              | The [BorderStyle](#borderstyle``1) to set for the month calendar.                                           |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated BorderStyle property.

This method allows you to set the border style for the month calendar.

```csharp

myMonthCalendar.BorderStyle(BorderStyle.FixedSingle);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) CalendarDimensions\<TMonthCalendar>(monthCalendar, dimensions)

Sets the CalendarDimensions property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).      |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the CalendarDimensions property.                                             |
| **dimensions**     | [Size](https://docs.microsoft.com/dotnet/api/system.drawing.size)                                | A [Size](https://docs.microsoft.com/dotnet/api/system.drawing.size) representing the dimensions of the calendar. |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated CalendarDimensions property.

This method allows you to specify the dimensions (number of months shown) for the month calendar.

```csharp

myMonthCalendar.CalendarDimensions(new Size(2, 1));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) FirstDayOfWeek\<TMonthCalendar>(monthCalendar, day)

Sets the FirstDayOfWeek property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the FirstDayOfWeek property.                                            |
| **day**            | [Day](/api/wisej.web/enumerations/wisej.web.day.md)                                              | The [Day](/api/wisej.web/enumerations/wisej.web.day.md) to set as the first day of the week.                |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated FirstDayOfWeek property.

This method allows you to specify the first day of the week for the month calendar.

```csharp

myMonthCalendar.FirstDayOfWeek(Day.Monday);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) MaxDate\<TMonthCalendar>(monthCalendar, date)

Sets the MaxDate property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the MaxDate property.                                                   |
| **date**           | [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime)                                | The maximum allowable date.                                                                                 |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated MaxDate property.

This method allows you to set the maximum allowable date that can be selected in the month calendar.

```csharp

myMonthCalendar.MaxDate(new DateTime(2023, 12, 31));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) MaxSelectionCount\<TMonthCalendar>(monthCalendar, count)

Sets the MaxSelectionCount property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the MaxSelectionCount property.                                         |
| **count**          | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                      | The maximum number of days that can be selected.                                                            |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated MaxSelectionCount property.

This method allows you to specify the maximum number of days that can be selected in the month calendar.

```csharp

myMonthCalendar.MaxSelectionCount(7);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) MinDate\<TMonthCalendar>(monthCalendar, date)

Sets the MinDate property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the MinDate property.                                                   |
| **date**           | [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime)                                | The minimum allowable date.                                                                                 |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated MinDate property.

This method allows you to set the minimum allowable date that can be selected in the month calendar.

```csharp

myMonthCalendar.MinDate(new DateTime(2023, 1, 1));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) MonthlyBoldedDates\<TMonthCalendar>(monthCalendar, dates)

Sets the MonthlyBoldedDates property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                          |
| ------------------ | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).          |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the MonthlyBoldedDates property.                                                 |
| **dates**          | [DateTime\[\]](https://docs.microsoft.com/dotnet/api/system.datetime)                            | An array of [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime) representing the monthly bolded dates. |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated MonthlyBoldedDates property.

This method allows you to specify dates that are bolded every month in the month calendar.

```csharp

myMonthCalendar.MonthlyBoldedDates(new DateTime(2000, 1, 15));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) OnDateChanged\<TMonthCalendar>(monthCalendar, action)

Attaches an event handler for the DateChanged event of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                                 | Description                                                                                                 |
| ------------------ | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                      | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md)     | The month calendar to attach the event handler to.                                                          |
| **action**         | [Action\<TMonthCalendar, DateRangeEventArgs>](https://docs.microsoft.com/dotnet/api/system.action-2) | An action to execute when the selected date range changes.                                                  |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the attached DateChanged event handler.

This method allows you to execute a custom action whenever the selected date range changes in the month calendar.

```csharp

myMonthCalendar.OnDateChanged((mc, args) =>
{
AlertBox.Show($"Date changed: {args.Start} - {args.End}");
});

```

### ![](/files/lIX317sDtMTZJBi9oSIx) OnDateSelected\<TMonthCalendar>(monthCalendar, action)

Attaches an event handler for the DateSelected event of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                                 | Description                                                                                                 |
| ------------------ | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                      | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md)     | The month calendar to attach the event handler to.                                                          |
| **action**         | [Action\<TMonthCalendar, DateRangeEventArgs>](https://docs.microsoft.com/dotnet/api/system.action-2) | An action to execute when a date is selected.                                                               |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the attached DateSelected event handler.

This method allows you to execute a custom action whenever a date is selected in the month calendar.

```csharp

myMonthCalendar.OnDateSelected((mc, args) =>
{
AlertBox.Show($"Date selected: {args.Start} - {args.End}");
});

```

### ![](/files/lIX317sDtMTZJBi9oSIx) OnDisplayRangeChanged\<TMonthCalendar>(monthCalendar, action)

Attaches an event handler for the DisplayRangeChanged event of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                                 | Description                                                                                                 |
| ------------------ | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                      | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md)     | The month calendar to attach the event handler to.                                                          |
| **action**         | [Action\<TMonthCalendar, DateRangeEventArgs>](https://docs.microsoft.com/dotnet/api/system.action-2) | An action to execute when the display range changes.                                                        |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the attached DisplayRangeChanged event handler.

This method allows you to execute a custom action whenever the display range changes in the month calendar.

```csharp

myMonthCalendar.OnDisplayRangeChanged((mc, args) =>
{
AlertBox.Show($"Display range changed: {args.Start} - {args.End}");
});

```

### ![](/files/lIX317sDtMTZJBi9oSIx) SelectionEnd\<TMonthCalendar>(monthCalendar, date)

Sets the SelectionEnd property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the SelectionEnd property.                                              |
| **date**           | [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime)                                | The end date of the selection range.                                                                        |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated SelectionEnd property.

This method allows you to specify the end date of the selection range in the month calendar.

```csharp

myMonthCalendar.SelectionEnd(new DateTime(2023, 6, 10));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) SelectionRange\<TMonthCalendar>(monthCalendar, selectionRange)

Sets the SelectionRange property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the SelectionRange property.                                            |
| **selectionRange** | [SelectionRange](/api/wisej.web/editors/monthcalendar/wisej.web.selectionrange.md)               | The [SelectionRange](#selectionrange``1) to set for the month calendar.                                     |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated SelectionRange property.

This method allows you to specify the selection range in the month calendar.

```csharp

myMonthCalendar.SelectionRange(new SelectionRange(new DateTime(2023, 6, 1), new DateTime(2023, 6, 10)));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) SelectionStart\<TMonthCalendar>(monthCalendar, date)

Sets the SelectionStart property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the SelectionStart property.                                            |
| **date**           | [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime)                                | The start date of the selection range.                                                                      |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated SelectionStart property.

This method allows you to specify the start date of the selection range in the month calendar.

```csharp

myMonthCalendar.SelectionStart(new DateTime(2023, 6, 1));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) ShowOtherMonth\<TMonthCalendar>(monthCalendar, value)

Sets the ShowOtherMonth property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the ShowOtherMonth property.                                            |
| **value**          | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                  | A boolean indicating whether days from other months are shown in the month calendar.                        |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated ShowOtherMonth property.

This method allows you to enable or disable the display of days from other months in the month calendar.

```csharp

myMonthCalendar.ShowOtherMonth(true);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) ShowToday\<TMonthCalendar>(monthCalendar, value)

Sets the ShowToday property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the ShowToday property.                                                 |
| **value**          | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                  | A boolean indicating whether today's date is shown at the bottom of the month calendar.                     |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated ShowToday property.

This method allows you to enable or disable the display of today's date at the bottom of the month calendar.

```csharp

myMonthCalendar.ShowToday(true);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) ShowToolTips\<TMonthCalendar>(monthCalendar, value)

Sets the ShowToolTips property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the ShowToolTips property.                                              |
| **value**          | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                  | A boolean indicating whether tooltips are shown in the month calendar.                                      |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated ShowToolTips property.

This method allows you to enable or disable the display of tooltips in the month calendar.

```csharp

myMonthCalendar.ShowToolTips(true);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) ShowWeekNumbers\<TMonthCalendar>(monthCalendar, value)

Sets the ShowWeekNumbers property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the ShowWeekNumbers property.                                           |
| **value**          | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                  | A boolean indicating whether week numbers are shown in the month calendar.                                  |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated ShowWeekNumbers property.

This method allows you to enable or disable the display of week numbers in the month calendar.

```csharp

myMonthCalendar.ShowWeekNumbers(true);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) TodayDate\<TMonthCalendar>(monthCalendar, date)

Sets the TodayDate property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the TodayDate property.                                                 |
| **date**           | [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime)                                | The date to use as today's date.                                                                            |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated TodayDate property.

This method allows you to specify the date to be used as today's date in the month calendar.

```csharp

myMonthCalendar.TodayDate(new DateTime(2023, 6, 15));

```

### ![](/files/lIX317sDtMTZJBi9oSIx) TodayFormat\<TMonthCalendar>(monthCalendar, format)

Sets the TodayFormat property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the TodayFormat property.                                               |
| **format**         | [String](https://docs.microsoft.com/dotnet/api/system.string)                                    | The format string to use for today's date.                                                                  |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated TodayFormat property.

This method allows you to specify the format string for displaying today's date in the month calendar.

```csharp

myMonthCalendar.TodayFormat("MM/dd/yyyy");

```

### ![](/files/lIX317sDtMTZJBi9oSIx) Tools\<TMonthCalendar>(monthCalendar, tools)

Adds the specified tools to the Tools collection of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md). |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar to which the tools should be added.                                                      |
| **tools**          | [ComponentTool\[\]](/api/wisej.web/editors/wisej.web.componenttool.md)                           | An array of tools to add to the month calendar.                                                             |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the added tools.

This method allows you to add multiple tools to the month calendar in one call.

```csharp

myMonthCalendar.Tools(tool1, tool2, tool3);

```

### ![](/files/lIX317sDtMTZJBi9oSIx) ToolsPosition\<TMonthCalendar>(monthCalendar, position)

Sets the ToolsPosition property of the specified [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).

| Parameter          | Type                                                                                             | Description                                                                                                               |
| ------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| **TMonthCalendar** |                                                                                                  | The type of the month calendar, must inherit from [MonthCalendar](/api/wisej.web/editors/monthcalendar.md).               |
| **monthCalendar**  | [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md) | The month calendar for which to set the ToolsPosition property.                                                           |
| **position**       | [HeaderPosition](/api/wisej.web/enumerations/wisej.web.headerposition.md)                        | The [HeaderPosition](/api/wisej.web/enumerations/wisej.web.headerposition.md) to set for the tools in the month calendar. |

**Returns:** [TMonthCalendar](/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md). The modified month calendar with the updated ToolsPosition property.

This method allows you to specify the position of tools in the month calendar.

```csharp

myMonthCalendar.ToolsPosition(HeaderPosition.Top);

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.monthcalendarextenestions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
