field-date
حقل تاريخ أصلي، ومعه صندوق التحرير والسرد الذي يفعّله datetime.js ويفهم اللغة الطبيعية، ما لم يمرّر المستدعي Plain. اكتب فيه "غدًا".
حقل مُحسَّن: اكتب «غدًا» أو «بعد 3 أسابيع»
<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":"قبل|منذ","am":"صباحا|صباحاً|ص|am","at":"في|الساعة","day":"يوم|أيام|ايام|يومين","hour":"ساعة|ساعات|س|ساعتين","in":"خلال|بعد","last":"الماضي|الماضية|السابق|السابقة","midnight":"منتصف الليل","minute":"دقيقة|دقائق|د|دقيقتين","month":"شهر|الشهر|أشهر|اشهر|شهور|شهرين","next":"القادم|القادمة|المقبل|المقبلة","noon":"الظهر|ظهرا|ظهراً","pm":"مساء|مساءً|م|pm","today":"اليوم","tomorrow":"غدا|غداً|بكرة|غدًا","week":"أسبوع|الأسبوع|اسبوع|أسابيع|اسابيع|أسبوعين","yesterday":"أمس|امس|البارحة"}" 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="اقتراح واحد" 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">The day it goes live.</small>
</div></form></section>
الكلمات التي يحلّلها تخرج على data-rst-date-words مأخوذةً من فهرس هذه الصفحة: فالحقل يحلّل اللغة التي كُتبت بها الصفحة.
مطلوب، مع خطأ
<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":"قبل|منذ","am":"صباحا|صباحاً|ص|am","at":"في|الساعة","day":"يوم|أيام|ايام|يومين","hour":"ساعة|ساعات|س|ساعتين","in":"خلال|بعد","last":"الماضي|الماضية|السابق|السابقة","midnight":"منتصف الليل","minute":"دقيقة|دقائق|د|دقيقتين","month":"شهر|الشهر|أشهر|اشهر|شهور|شهرين","next":"القادم|القادمة|المقبل|المقبلة","noon":"الظهر|ظهرا|ظهراً","pm":"مساء|مساءً|م|pm","today":"اليوم","tomorrow":"غدا|غداً|بكرة|غدًا","week":"أسبوع|الأسبوع|اسبوع|أسابيع|اسابيع|أسبوعين","yesterday":"أمس|امس|البارحة"}" 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="اقتراح واحد" 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">Pick a date after today.</small>
</div></form></section>
بحدّين
<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":"قبل|منذ","am":"صباحا|صباحاً|ص|am","at":"في|الساعة","day":"يوم|أيام|ايام|يومين","hour":"ساعة|ساعات|س|ساعتين","in":"خلال|بعد","last":"الماضي|الماضية|السابق|السابقة","midnight":"منتصف الليل","minute":"دقيقة|دقائق|د|دقيقتين","month":"شهر|الشهر|أشهر|اشهر|شهور|شهرين","next":"القادم|القادمة|المقبل|المقبلة","noon":"الظهر|ظهرا|ظهراً","pm":"مساء|مساءً|م|pm","today":"اليوم","tomorrow":"غدا|غداً|بكرة|غدًا","week":"أسبوع|الأسبوع|اسبوع|أسابيع|اسابيع|أسبوعين","yesterday":"أمس|امس|البارحة"}" 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="اقتراح واحد" 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></form></section>
Plain — الحقل الأصلي كما هو
<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>
لا توجد أي سمات تحسين، فلا يجد datetime.js شيئًا. ومع ذلك يظل المنتقي الأصلي يفتح.