Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.
The Bootstrap Date Edit control is a date editor control that combines the functionality of a single-line text editor, button editor and dropdown calendar.
Bootstrap Date Edit offers the following features.
Null Prompt Text
The prompt text can be displayed if the editor's value is null and the editor is not focused. The prompt text disappears when the editor receives focus. You can define the prompt text using the BootstrapDateEditBuilder.NullText method.
You can specify how an editor value is represented within the edit boxes. For display and edit purposes, the edited value can be displayed in the following formats.
The DateEdit control allows end-users to edit a date value by selecting it within a drop-down calendar, or by typing a date directly into the editor's text box, or by using the mouse wheel or keyboard.
Date Range Picker
Two Date Edit controls can be combined to implement a date range picker functionality.
Customizable Button Collection
The Date Edit control provides a collection to maintain its custom edit buttons. Each button exposes a set of properties allowing the button's appearance and behavior to be defined. The settings of the default button, which invokes the dropdown calendar when clicked, can be customized as well.
The Date Edit control allows you to perform data validation both on the client and server side. See the Unobtrusive Validation demo for more information.
Full-Featured Client-Side API
You can modify the editor behavior using the following methods.