New to KendoReact? Start a free 30-day trial
Dates
The Calendar enables you to set the behavior of its dates.
You can apply either of the following approaches:
- Setting the focused dates, or
- Setting the selected dates.
Setting the Focused Date
The Calendar always displays a focused date and, by default, the focused date is today's date. To change the focused date, use the focusedDate
property by setting it to a specific Date
value. The Date
value has to be a valid JavaScript Date
object.
Change Theme
Theme
Loading ...
Setting the Selected Date
By default, the selected date is not set and the Calendar displays only the focused date. To define the selected date, use the value
property.
jsx
class App extends React.Component {
render() {
return <Calendar value={new Date(2010, 10, 10)} />;
}
}
ReactDOM.render(<App />, document.querySelector('my-app'));