Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Date Input: portable MyST alternative

Former upstream Pro component: <wa-date-input>. Category: Portable Alternatives · Implementation: MyST + HTML5.

Use this documentation recipe without importing Web Awesome Pro code. The former component is named for compatibility and discovery only; the alternative is not API-equivalent.

Portable example

Use <input type="date"> for browser-native date entry. Its submitted value uses the ISO YYYY-MM-DD format; the visible picker varies by browser and locale.

Table 1:Date Input example values

FieldExampleConstraint
Deployment date2026-10-17Between 2026-01-01 and 2027-12-31
Submitted format2026-10-17ISO 8601 calendar date

Copyable HTML5 pattern

<label for="deployment-date">Deployment date</label>
<input id="deployment-date" name="deployment-date" type="date"
       min="2026-01-01" max="2027-12-31" required>

The HTML markup above is a code sample, not an active MyST form or a configured application endpoint.

Accessibility and compatibility

Provide a visible label and validate dates server-side. A date input is an application control, while the MyST table remains readable in non-HTML exports.

References: MyST specification, MyST tables, Web Awesome upstream reference.