field-date
Um campo de data nativo, mais a caixa de linguagem natural que o datetime.js ativa, a não ser que quem o usa passe Plain. Escreva "amanhã" nele.
Campo melhorado: escreva "amanhã" ou "daqui a 3 semanas"
Coloque isto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_live" >Publicar em</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":"atrás|atras|há|ha","am":"am|a.m.|manhã|manha","at":"às|as|à|a","day":"dia|dias","hour":"hora|horas|h","in":"em|daqui","last":"passado|passada|último|ultimo|última|ultima|anterior","midnight":"meia-noite|meia noite","minute":"minuto|minutos|min|mins|m","month":"mês|mes|meses","next":"próximo|proximo|próxima|proxima|seguinte","noon":"meio-dia|meio dia","pm":"pm|p.m.|tarde|noite","today":"hoje","tomorrow":"amanhã|amanha","week":"semana|semanas","yesterday":"ontem"}" data-rst-date-set ="Definir" data-rst-date-hint ="Experimente: {example}" data-rst-date-pick ="Abrir o calendário" data-rst-date-calendar ="Calendário" data-rst-date-prev-month ="Mês anterior" data-rst-date-next-month ="Mês seguinte" data-rst-date-results ="{n} sugestões" data-rst-date-result-one ="1 sugestão" data-rst-date-quick-today ="Hoje" data-rst-date-quick-tomorrow ="Amanhã" data-rst-date-quick-next-week ="Dentro de uma semana" data-rst-date-quick-plus-1h ="Uma hora depois" data-rst-date-quick-plus-2h ="Duas horas depois" data-rst-date-quick-end-of-day ="Fim desse dia" data-rst-date-quick-next-day ="À mesma hora no dia seguinte" >
<small rst-field-hint id ="field-date_live-hint" >O dia em que fica ativo.</small >
</div >
Coloque isto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_live"
"Label" "Publicar em"
"Value" "2026-09-04"
"Hint" "O dia em que fica ativo." }}
As palavras que analisa saem em data-rst-date-words, resolvidas pelo catálogo desta página: o campo analisa a língua em que a página está.
Obrigatório, com um erro
Coloque isto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_error" >Publicar em <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":"atrás|atras|há|ha","am":"am|a.m.|manhã|manha","at":"às|as|à|a","day":"dia|dias","hour":"hora|horas|h","in":"em|daqui","last":"passado|passada|último|ultimo|última|ultima|anterior","midnight":"meia-noite|meia noite","minute":"minuto|minutos|min|mins|m","month":"mês|mes|meses","next":"próximo|proximo|próxima|proxima|seguinte","noon":"meio-dia|meio dia","pm":"pm|p.m.|tarde|noite","today":"hoje","tomorrow":"amanhã|amanha","week":"semana|semanas","yesterday":"ontem"}" data-rst-date-set ="Definir" data-rst-date-hint ="Experimente: {example}" data-rst-date-pick ="Abrir o calendário" data-rst-date-calendar ="Calendário" data-rst-date-prev-month ="Mês anterior" data-rst-date-next-month ="Mês seguinte" data-rst-date-results ="{n} sugestões" data-rst-date-result-one ="1 sugestão" data-rst-date-quick-today ="Hoje" data-rst-date-quick-tomorrow ="Amanhã" data-rst-date-quick-next-week ="Dentro de uma semana" data-rst-date-quick-plus-1h ="Uma hora depois" data-rst-date-quick-plus-2h ="Duas horas depois" data-rst-date-quick-end-of-day ="Fim desse dia" data-rst-date-quick-next-day ="À mesma hora no dia seguinte" >
<small rst-field-error id ="field-date_error-error" >Escolha uma data posterior a hoje.</small >
</div >
Coloque isto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_error"
"Label" "Publicar em"
"Required" true
"Error" "Escolha uma data posterior a hoje." }}
Com limites
Coloque isto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_bounded" >Dentro deste ano</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":"atrás|atras|há|ha","am":"am|a.m.|manhã|manha","at":"às|as|à|a","day":"dia|dias","hour":"hora|horas|h","in":"em|daqui","last":"passado|passada|último|ultimo|última|ultima|anterior","midnight":"meia-noite|meia noite","minute":"minuto|minutos|min|mins|m","month":"mês|mes|meses","next":"próximo|proximo|próxima|proxima|seguinte","noon":"meio-dia|meio dia","pm":"pm|p.m.|tarde|noite","today":"hoje","tomorrow":"amanhã|amanha","week":"semana|semanas","yesterday":"ontem"}" data-rst-date-set ="Definir" data-rst-date-hint ="Experimente: {example}" data-rst-date-pick ="Abrir o calendário" data-rst-date-calendar ="Calendário" data-rst-date-prev-month ="Mês anterior" data-rst-date-next-month ="Mês seguinte" data-rst-date-results ="{n} sugestões" data-rst-date-result-one ="1 sugestão" data-rst-date-quick-today ="Hoje" data-rst-date-quick-tomorrow ="Amanhã" data-rst-date-quick-next-week ="Dentro de uma semana" data-rst-date-quick-plus-1h ="Uma hora depois" data-rst-date-quick-plus-2h ="Duas horas depois" data-rst-date-quick-end-of-day ="Fim desse dia" data-rst-date-quick-next-day ="À mesma hora no dia seguinte" >
</div >
Coloque isto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_bounded"
"Label" "Dentro deste ano"
"Value" "2026-09-04"
"Min" "2026-01-01"
"Max" "2026-12-31" }}
Plain: o campo nativo tal e qual
Coloque isto dentro de <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="field-date_plain" >Publicar em</label >
<input rst-input id ="field-date_plain" name ="field-date_plain" type ="date" value ="2026-09-04" >
</div >
Coloque isto dentro de <section rst-box><form rst-form>.
{{ template "field-date" dict
"Name" "field-date_plain"
"Label" "Publicar em"
"Value" "2026-09-04"
"Plain" true }}
Sem nenhum atributo de melhoria, por isso o datetime.js não encontra nada. O seletor nativo continua a abrir.