# Calendar Message

The **CalendarMessage** operates with **DateTime** value type. Its constructors accept the following parameters.

* **DateTime selectedDate**
* **MessageDisplayPosition displayPosition**
* **Author author**
* **DateTime creationDate**
* **DateTime displayDate**: the **creationDate** and **displayDate** parameters are optional. The **displayDate** parameter is used to control the visible time period when adding the message. If the **selectedDate** corresponds to a different time period, it would not be visible initially.

**Defining a CalendarMessage**

```C#
DateTime time = new DateTime(2018, 6, 1);
CalendarMessage calendarMessage = new CalendarMessage(MessageDisplayPosition.Popup, currentAuthor);

this.chat.AddMessage(calendarMessage);
```

> caption Defining CalendarMessage

![Defining CalendarMessage](https://www.telerik.com/products/wpf/documentation/assets/e0f40739be193e053d8306c92516b2d9/radchat_messages_calendar_01.png)

## See Also

* [Messages Overview](https://www.telerik.com/products/wpf/documentation/controls/radchat/messages/overview)
