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"
Pon esto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_live" >Publicar el</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" >El día en que se publica.</small >
</div >
Pon esto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_live"
"Label" "Publicar el"
"Value" "2026-09-04"
"Hint" "El día en que se publica." }}
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
Pon esto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_error" >Publicar el <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" >Elige una fecha posterior a hoy.</small >
</div >
Pon esto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_error"
"Label" "Publicar el"
"Required" true
"Error" "Elige una fecha posterior a hoy." }}
Con límites
Pon esto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_bounded" >Dentro de este año</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 >
Pon esto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_bounded"
"Label" "Dentro de este año"
"Value" "2026-09-04"
"Min" "2026-01-01"
"Max" "2026-12-31" }}
Plain: el campo nativo tal cual
Pon esto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_plain" >Publicar el</label >
<input rst-input id ="field-date_plain" name ="field-date_plain" type ="date" value ="2026-09-04" >
</div >
Pon esto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_plain"
"Label" "Publicar el"
"Value" "2026-09-04"
"Plain" true }}
Sin ningún atributo de mejora, así que datetime.js no encuentra nada. El selector nativo se sigue abriendo.