Persian (Jalali) Calendar & Data Picker Plugin With jQuery - kamaDatepicker

Persian (Jalali) Calendar & Data Picker Plugin With jQuery - kamaDatepicker
File Size: 85.3 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

kamaDatepicker is a customizable jQuery Jalali (Shamsi) calendar plugin for jQuery that makes it easier to select Persian(Jalali) dates with lots of useful options.

See also:

How to use it:

1. Add references to jQuery library and the jQuery kamaDatepicker plugin's files into the webpage.

<link rel="stylesheet" href="kamadatepicker.css">
<script src="//"></script>
<script src="kamadatepicker.js"></script>

2. Call the function on the target date input to generate a default Jalali calendar.


3. To config the Jalali calendar plugin, just pass pass an option object as the second parameter to the kamaDatepicker function.

kamaDatepicker('data-input', {

  // placeholder text
  placeholder: "",

  // enable 2 digits
  twodigit: true,

  // close calendar after select
  closeAfterSelect: true,

  // nexy / prev buttons
  nextButtonIcon: "بعدی",
  previousButtonIcon: "قبلی ",

  // color of buttons
  buttonsColor: "پیشفرض ",

  // force Farsi digits
  forceFarsiDigits: false,

  // highlight today
  markToday: false,

  // highlight holidays
  markHolidays: false,

  // highlight user selected day
  highlightSelectedDay: false,

  // true or false
  sync: false,

  // display goto today button
  gotoToday: false,

  // the number of years to be selected before this year
  pastYearsCount: 95,

  // the number of years to be selected after this year
  futureYearsCount: 6,

  // auto swaps next/prev buttons
  swapNextPrev: false


v1.5.1 (2019-08-07)

  • fixed viewport issue.


  • implement swapNextPrev option


  • fixed leap year calculation


  • Accept range in year dropdown

This awesome jQuery plugin is developed by Hadi290. For more Advanced Usages, please check the demo page or visit the official website.