# Input Date >> Use Cases ||20 ```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` `; ```