JalaliJSCalendar
JalaliJSCalendar is a JavaScript date-picker and calendar widget based on "Dynarch DHTML Calendar" from Mihai Bazon. The main difference between two is that JalaliJSCalendar supports Persian (AKA Hijri Shamsi) calendar too, which is the official Iranian calendar.
JalaliJSCalendar is free and open source and released under the terms of GPL (GNU General Public License).
Dynamic Demo
Supported Browsers
- Internet Explorer 5.0+ for Windows
- Mozilla, Netscape 7.x, Mozilla FireFox (any platform)
- Other Gecko-based browsers (any platform)
- Konqueror 3.2+ for Linux
- Apple Safari for Macintosh and Windows
- Opera 7+ (any platform)
How to use it?
Download it from here.
Then use it like this:
<link rel="stylesheet" href="jalalijscalendar/skins/aqua/theme.css">
<script src="jalalijscalendar/jalali.js"></script>
<script src="jalalijscalendar/calendar.js"></script>
<script src="jalalijscalendar/calendar-setup.js"></script>
<script src="jalalijscalendar/lang/calendar-fa.js"></script>
<input id="date_input" type="text"><input id="date_btn" type="button">
<script>
Calendar.setup({
inputField: 'date_input',
button: 'date_btn',
ifFormat: '%Y/%m/%d',
dateType: 'jalali'
});
</script>
For more usage examples see the example files bundled with the package.