--- parts: - Input Date - Use Cases title: 'Input Date: Use Cases' eleventyNavigation: key: 'Input Date: Use Cases' order: 20 parent: Input Date title: Use Cases --- # Input Date: Use Cases ```js script import { html } from '@mdjs/mdjs-preview'; import { MinDate, MinMaxDate, MaxDate } from '@lion/ui/form-core.js'; import { loadDefaultFeedbackMessages } from '@lion/ui/validate-messages.js'; import { formatDate } from '@lion/ui/localize.js'; import '@lion/ui/define/lion-input-date.js'; ``` ## Is a date ```js preview-story export const isADate = () => html` `; ``` ## With minimum date ```js preview-story export const withMinimumDate = () => { loadDefaultFeedbackMessages(); return html` `; }; ``` ## With maximum date ```js preview-story export const withMaximumDate = () => { loadDefaultFeedbackMessages(); return html` `; }; ``` ## With minimum and maximum date ```js preview-story export const withMinimumAndMaximumDate = () => { loadDefaultFeedbackMessages(); return html`
Enter a date between ${formatDate(new Date('2018/05/24'))} and ${formatDate(new Date('2018/06/24'))}.
`; }; ``` ## Faulty prefilled ```js preview-story export const faultyPrefilled = () => html` `; ```