सामग्री पर जाएँ
अनुभाग
Fiesta

field-date

दिनांक और समय datetime.js जिन चार फ़ील्ड को बेहतर बनाता है, हर एक अपने नीचे मूल इनपुट रखता है, ताकि बिना स्क्रिप्ट वाले पाठक को सादा नियंत्रण मिले, टूटा हुआ नहीं।

एक मूल तारीख़ इनपुट, और साथ में datetime.js का सहज-भाषा कॉम्बोबॉक्स, जो इनपुट पर data-rst-date होने पर जुड़ता है। इसमें "कल" लिखकर देखें।

हर उदाहरण असली है, पर उसके लिंक कहीं नहीं ले जाते। HTML कॉपी करने के लिए मार्कअप दिखाता है।

उन्नत इनपुट: लिखें "कल" या "3 हफ़्ते में"

जिन शब्दों को वह पढ़ता है, वे data-rst-date-words पर हैं, यहाँ पृष्ठ की भाषा में। i18n/<lang>.json में वे बारह भाषाओं में हैं, इसलिए पृष्ठ जिस भी भाषा में हो, फ़ील्ड उसे पढ़ सकता है।

पूर्वावलोकन

इसे <section rst-box><form rst-form> के अंदर रखें।

<div rst-field>
  <label rst-field-label for="field-date_live">प्रकाशन की तारीख़</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="{&#34;ago&#34;:&#34;पहले&#34;,&#34;am&#34;:&#34;सुबह|पूर्वाह्न|am&#34;,&#34;at&#34;:&#34;बजे|पर&#34;,&#34;day&#34;:&#34;दिन&#34;,&#34;hour&#34;:&#34;घंटा|घंटे&#34;,&#34;in&#34;:&#34;में|बाद&#34;,&#34;last&#34;:&#34;पिछला|पिछले|पिछली&#34;,&#34;midnight&#34;:&#34;मध्यरात्रि|आधी रात&#34;,&#34;minute&#34;:&#34;मिनट&#34;,&#34;month&#34;:&#34;महीना|महीने|माह&#34;,&#34;next&#34;:&#34;अगला|अगले|अगली&#34;,&#34;noon&#34;:&#34;दोपहर&#34;,&#34;pm&#34;:&#34;शाम|अपराह्न|pm|रात&#34;,&#34;today&#34;:&#34;आज&#34;,&#34;tomorrow&#34;:&#34;कल&#34;,&#34;week&#34;:&#34;सप्ताह|हफ़्ता|हफ्ता|हफ़्ते|हफ्ते&#34;,&#34;yesterday&#34;:&#34;बीता कल|गुज़रा कल&#34;}" data-rst-date-set="सेट करें" data-rst-date-hint="आज़माएँ: {example}" data-rst-date-pick="कैलेंडर खोलें" data-rst-date-calendar="कैलेंडर" data-rst-date-prev-month="पिछला महीना" data-rst-date-next-month="अगला महीना" data-rst-date-results="{n} सुझाव" data-rst-date-result-one="1 सुझाव" data-rst-date-quick-today="आज" data-rst-date-quick-tomorrow="कल" data-rst-date-quick-next-week="एक सप्ताह बाद" data-rst-date-quick-plus-1h="एक घंटे बाद" data-rst-date-quick-plus-2h="दो घंटे बाद" data-rst-date-quick-end-of-day="उस दिन के अंत में" data-rst-date-quick-next-day="अगले दिन उसी समय">
  <small rst-field-hint id="field-date_live-hint">जिस दिन यह लाइव होगा।</small>
</div>

अनिवार्य, त्रुटि के साथ

पूर्वावलोकन

इसे <section rst-box><form rst-form> के अंदर रखें।

<div rst-field>
  <label rst-field-label for="field-date_error">प्रकाशन की तारीख़ <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="{&#34;ago&#34;:&#34;पहले&#34;,&#34;am&#34;:&#34;सुबह|पूर्वाह्न|am&#34;,&#34;at&#34;:&#34;बजे|पर&#34;,&#34;day&#34;:&#34;दिन&#34;,&#34;hour&#34;:&#34;घंटा|घंटे&#34;,&#34;in&#34;:&#34;में|बाद&#34;,&#34;last&#34;:&#34;पिछला|पिछले|पिछली&#34;,&#34;midnight&#34;:&#34;मध्यरात्रि|आधी रात&#34;,&#34;minute&#34;:&#34;मिनट&#34;,&#34;month&#34;:&#34;महीना|महीने|माह&#34;,&#34;next&#34;:&#34;अगला|अगले|अगली&#34;,&#34;noon&#34;:&#34;दोपहर&#34;,&#34;pm&#34;:&#34;शाम|अपराह्न|pm|रात&#34;,&#34;today&#34;:&#34;आज&#34;,&#34;tomorrow&#34;:&#34;कल&#34;,&#34;week&#34;:&#34;सप्ताह|हफ़्ता|हफ्ता|हफ़्ते|हफ्ते&#34;,&#34;yesterday&#34;:&#34;बीता कल|गुज़रा कल&#34;}" data-rst-date-set="सेट करें" data-rst-date-hint="आज़माएँ: {example}" data-rst-date-pick="कैलेंडर खोलें" data-rst-date-calendar="कैलेंडर" data-rst-date-prev-month="पिछला महीना" data-rst-date-next-month="अगला महीना" data-rst-date-results="{n} सुझाव" data-rst-date-result-one="1 सुझाव" data-rst-date-quick-today="आज" data-rst-date-quick-tomorrow="कल" data-rst-date-quick-next-week="एक सप्ताह बाद" data-rst-date-quick-plus-1h="एक घंटे बाद" data-rst-date-quick-plus-2h="दो घंटे बाद" data-rst-date-quick-end-of-day="उस दिन के अंत में" data-rst-date-quick-next-day="अगले दिन उसी समय">
  <small rst-field-error id="field-date_error-error">आज के बाद की कोई तारीख़ चुनें।</small>
</div>

सीमाओं के साथ

पूर्वावलोकन

इसे <section rst-box><form rst-form> के अंदर रखें।

<div rst-field>
  <label rst-field-label for="field-date_bounded">इसी साल के भीतर</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="{&#34;ago&#34;:&#34;पहले&#34;,&#34;am&#34;:&#34;सुबह|पूर्वाह्न|am&#34;,&#34;at&#34;:&#34;बजे|पर&#34;,&#34;day&#34;:&#34;दिन&#34;,&#34;hour&#34;:&#34;घंटा|घंटे&#34;,&#34;in&#34;:&#34;में|बाद&#34;,&#34;last&#34;:&#34;पिछला|पिछले|पिछली&#34;,&#34;midnight&#34;:&#34;मध्यरात्रि|आधी रात&#34;,&#34;minute&#34;:&#34;मिनट&#34;,&#34;month&#34;:&#34;महीना|महीने|माह&#34;,&#34;next&#34;:&#34;अगला|अगले|अगली&#34;,&#34;noon&#34;:&#34;दोपहर&#34;,&#34;pm&#34;:&#34;शाम|अपराह्न|pm|रात&#34;,&#34;today&#34;:&#34;आज&#34;,&#34;tomorrow&#34;:&#34;कल&#34;,&#34;week&#34;:&#34;सप्ताह|हफ़्ता|हफ्ता|हफ़्ते|हफ्ते&#34;,&#34;yesterday&#34;:&#34;बीता कल|गुज़रा कल&#34;}" data-rst-date-set="सेट करें" data-rst-date-hint="आज़माएँ: {example}" data-rst-date-pick="कैलेंडर खोलें" data-rst-date-calendar="कैलेंडर" data-rst-date-prev-month="पिछला महीना" data-rst-date-next-month="अगला महीना" data-rst-date-results="{n} सुझाव" data-rst-date-result-one="1 सुझाव" data-rst-date-quick-today="आज" data-rst-date-quick-tomorrow="कल" data-rst-date-quick-next-week="एक सप्ताह बाद" data-rst-date-quick-plus-1h="एक घंटे बाद" data-rst-date-quick-plus-2h="दो घंटे बाद" data-rst-date-quick-end-of-day="उस दिन के अंत में" data-rst-date-quick-next-day="अगले दिन उसी समय">
</div>

Plain: बिना कुछ जोड़े मूल इनपुट

कोई भी संवर्धन विशेषता नहीं, इसलिए datetime.js को कुछ नहीं मिलता। मूल पिकर फिर भी खुलता है।

पूर्वावलोकन

इसे <section rst-box><form rst-form> के अंदर रखें।

<div rst-field>
  <label rst-field-label for="field-date_plain">प्रकाशन की तारीख़</label>
  <input rst-input id="field-date_plain" name="field-date_plain" type="date" value="2026-09-04">
</div>