field-date
Un campo de fecha nativo, más el combo de lenguaje natural que activa datetime.js salvo que quien lo use pase Plain. Escribe "mañana" en él.
Campo mejorado: escribe "mañana" o "en 3 semanas"
<section rst-box><form rst-form method="post" action="#"><div rst-field>
<label rst-field-label for="field-date_live">Publish on</label>
<input rst-input id="field-date_live" name="field-date_live" type="date" value="2026-09-04" aria-describedby="field-date_live-hint" data-rst-date data-rst-date-words="{"ago":"hace","am":"am|a.m.","at":"a|las|la","day":"día|dia|días|dias","hour":"hora|horas|h","in":"en","last":"pasado|pasada|último|ultimo|última|ultima|anterior","midnight":"medianoche","minute":"minuto|minutos|min|mins|m","month":"mes|meses","next":"próximo|proximo|próxima|proxima|siguiente","noon":"mediodía|mediodia","pm":"pm|p.m.|tarde|noche","today":"hoy","tomorrow":"mañana|manana","week":"semana|semanas","yesterday":"ayer"}" data-rst-date-set="Establecer" data-rst-date-hint="Prueba: {example}" data-rst-date-pick="Abrir el calendario" data-rst-date-calendar="Calendario" data-rst-date-prev-month="Mes anterior" data-rst-date-next-month="Mes siguiente" data-rst-date-results="{n} sugerencias" data-rst-date-result-one="1 sugerencia" data-rst-date-quick-today="Hoy" data-rst-date-quick-tomorrow="Mañana" data-rst-date-quick-next-week="Dentro de una semana" data-rst-date-quick-plus-1h="Una hora después" data-rst-date-quick-plus-2h="Dos horas después" data-rst-date-quick-end-of-day="Final de ese día" data-rst-date-quick-next-day="A la misma hora del día siguiente">
<small rst-field-hint id="field-date_live-hint">The day it goes live.</small>
</div></form></section>
Las palabras que analiza salen en data-rst-date-words, resueltas con el catálogo de esta página: el campo analiza el idioma en el que está la página.
Obligatorio, con un error
<section rst-box><form rst-form method="post" action="#"><div rst-field>
<label rst-field-label for="field-date_error">Publish on <span rst-field-required aria-hidden="true">*</span></label>
<input rst-input id="field-date_error" name="field-date_error" type="date" required aria-invalid="true" aria-describedby="field-date_error-error" data-rst-date data-rst-date-words="{"ago":"hace","am":"am|a.m.","at":"a|las|la","day":"día|dia|días|dias","hour":"hora|horas|h","in":"en","last":"pasado|pasada|último|ultimo|última|ultima|anterior","midnight":"medianoche","minute":"minuto|minutos|min|mins|m","month":"mes|meses","next":"próximo|proximo|próxima|proxima|siguiente","noon":"mediodía|mediodia","pm":"pm|p.m.|tarde|noche","today":"hoy","tomorrow":"mañana|manana","week":"semana|semanas","yesterday":"ayer"}" data-rst-date-set="Establecer" data-rst-date-hint="Prueba: {example}" data-rst-date-pick="Abrir el calendario" data-rst-date-calendar="Calendario" data-rst-date-prev-month="Mes anterior" data-rst-date-next-month="Mes siguiente" data-rst-date-results="{n} sugerencias" data-rst-date-result-one="1 sugerencia" data-rst-date-quick-today="Hoy" data-rst-date-quick-tomorrow="Mañana" data-rst-date-quick-next-week="Dentro de una semana" data-rst-date-quick-plus-1h="Una hora después" data-rst-date-quick-plus-2h="Dos horas después" data-rst-date-quick-end-of-day="Final de ese día" data-rst-date-quick-next-day="A la misma hora del día siguiente">
<small rst-field-error id="field-date_error-error">Pick a date after today.</small>
</div></form></section>
Con límites
<section rst-box><form rst-form method="post" action="#"><div rst-field>
<label rst-field-label for="field-date_bounded">Within this year</label>
<input rst-input id="field-date_bounded" name="field-date_bounded" type="date" value="2026-09-04" min="2026-01-01" max="2026-12-31" data-rst-date data-rst-date-words="{"ago":"hace","am":"am|a.m.","at":"a|las|la","day":"día|dia|días|dias","hour":"hora|horas|h","in":"en","last":"pasado|pasada|último|ultimo|última|ultima|anterior","midnight":"medianoche","minute":"minuto|minutos|min|mins|m","month":"mes|meses","next":"próximo|proximo|próxima|proxima|siguiente","noon":"mediodía|mediodia","pm":"pm|p.m.|tarde|noche","today":"hoy","tomorrow":"mañana|manana","week":"semana|semanas","yesterday":"ayer"}" data-rst-date-set="Establecer" data-rst-date-hint="Prueba: {example}" data-rst-date-pick="Abrir el calendario" data-rst-date-calendar="Calendario" data-rst-date-prev-month="Mes anterior" data-rst-date-next-month="Mes siguiente" data-rst-date-results="{n} sugerencias" data-rst-date-result-one="1 sugerencia" data-rst-date-quick-today="Hoy" data-rst-date-quick-tomorrow="Mañana" data-rst-date-quick-next-week="Dentro de una semana" data-rst-date-quick-plus-1h="Una hora después" data-rst-date-quick-plus-2h="Dos horas después" data-rst-date-quick-end-of-day="Final de ese día" data-rst-date-quick-next-day="A la misma hora del día siguiente">
</div></form></section>
Plain: el campo nativo tal cual
<section rst-box><form rst-form method="post" action="#"><div rst-field>
<label rst-field-label for="field-date_plain">Publish on</label>
<input rst-input id="field-date_plain" name="field-date_plain" type="date" value="2026-09-04">
</div></form></section>
Sin ningún atributo de mejora, así que datetime.js no encuentra nada. El selector nativo se sigue abriendo.