The InputDate control allows users to enter and edit dates. The dates can typed in any format supported by the Globalize class. It has the following advantages over regular input elements:
In the example below, InputDate accepts dates within the current week only:
<label for="theInputDate">The Date</label>
<div id="theInputDate"></div>
import * as wijmo from '@grapecity/wijmo';
import * as input from '@grapecity/wijmo.input';
function init() {
// a regular input date
let theDate = new input.InputDate('#theInputDate', {
format: 'MMM dd, yyyy',
min: firstDay,
max: lastDay,
});
}
Submit and view feedback for