DEV Community

Cover image for Azar Datepicker: Jalali & Gregorian Date Picker in Vanilla JS
jQueryScript
jQueryScript

Posted on

Azar Datepicker: Jalali & Gregorian Date Picker in Vanilla JS

Azar Datepicker: a dependency-free JavaScript library for Persian (Jalali) and Gregorian date and time picking.

Key features:

  • Jalali and Gregorian calendars with runtime switching
  • Date, time, and datetime modes
  • Auto dark mode from OS preference or Bootstrap's data-bs-theme
  • Mobile modal and desktop dropdown layouts auto-detected
  • Min/max date boundary enforcement
  • HTML data attribute initialization, no JS required
  • One JS file, one CSS file. Zero dependencies.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)