Jalali calendar is a sidereal calendar & is the official calendar system in Iran and Afghanistan.
Questions tagged [jalali-calendar]
68 questions
87
votes
11 answers
Is there any library or algorithm for Persian (Shamsi or Jalali) calendar in Android?
I want to convert Gregorian (western) date to Persian (Shamsi) date and vice versa for all versions of Android.
Is there any complete and reliable library or algorithm?

Conscious
- 1,603
- 3
- 18
- 16
58
votes
5 answers
A good date converter for Jalali Calendar in Java?
I'm developing a Java App and I have a timeStamp (in long). I can easily use this code to change it to a Gregorian date:
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(timeStamp);
But I need to have the date in Jalali…

Saeed
- 7,262
- 14
- 43
- 63
13
votes
1 answer
Jalali Calendar in fullcalendar
I use fullcalendar (fullcalendar.io) on my website.
My website has another language that needs Jalali calendar. So I try to change fullcalendar format to jalali because I see that this script uses moment.js and moment.js has an option to use jalali…

Ebad ghafoory
- 1,332
- 3
- 14
- 25
8
votes
3 answers
How to calculate leap year in jalali calendar?
As you know, there is a leap every four years in the Jalali calendar (There are, of course, a few exceptions)
And instead of having 365 days a year, it has 366 days :)
And the other problem is that some months are 29 days and some months are 30 days…

Aron Glover
- 385
- 2
- 15
7
votes
2 answers
How to Convert Persian (Jalali) Dates to other 18 Calendar Dates in Javascript without External Libraries or Complex Astronomical Equations
TL;DR, The requirement is to be able to take a Persian (Jalali) date (also known as Persian Solar Hijri Calendar) like Esfand 19, 1400 (i.e. "12/19/1400" and convert it to other calendars (Gregorian, Islamic, Chinese, Hebrew, etc.) without using…

Mohsen Alyafei
- 4,765
- 3
- 30
- 42
7
votes
2 answers
Persian datetimepicker in C# .net windows form
I want to get datetime from user in windows form C#.net .I use datetimepicker of .net control but it is gregorian so how can I change This datetimepicker to shamsi date???

saba
- 107
- 2
- 5
5
votes
2 answers
How to find public day in jalali calendar
I want to find a public day in Jalali calendar, I use npm Jalali-moment with this code
var moment = require('jalali-moment');
moment().locale('fa').format('YYYY/M/D');
This site has done this which called تاریخ امروز But I don't know how he did…

majid
- 812
- 1
- 12
- 36
4
votes
1 answer
save Jalali(Hijri shamsi) datetime in database in django
I have a Django project, and I want to save created_at datetime in the database. I generate datetime.now with jdatetime (or Khayyam) python package and try to save this in DateTimeField. But sometimes it raises error because the Gregorian(miladi)…

Kasra Najafi
- 560
- 5
- 11
4
votes
1 answer
Cannot find module '@angular-persian/material-date-picker' or its corresponding type declarations
I'm trying to use Persian Jalali DatePicker for Angular Material in my project.
So far, I have installed the package:
npm i --save @angular-persian/material-date-picker
But when I try to import it in my Angular project like so,
import…

Newsha Nik
- 806
- 2
- 12
- 29
4
votes
4 answers
Persian calendar - Insertion and retrieval date in Persian format from Oracle DB
My application requires the following.
In my application(in struts), we need to support Persian Calendar.
When we submit a form, date is coming as String in Action class. We need to save this date in Persian format in DB. We have configured DB for…

Tejeshvi Roy
- 146
- 6
4
votes
3 answers
Non-Gregorian Calendar with jQuery FullCalendar
Does anyone know how can one add a non-gregorian calendar support to jquery FullCalendar? For example Persian Calendar (Jalalai or Shamsi calendar).
I don't know where to start the customization and what exact classes and scripts are affected by…

arash
- 967
- 1
- 13
- 30
3
votes
2 answers
How to use amchart with jalali calendar?
I'm using amchart and I can't use the Jalali calendar because it doesn't support the non-Gregorian calendar.
I want to have Jalali date in date-Axis.
How I can change it?

Farshid Rezaei
- 751
- 2
- 10
- 34
3
votes
1 answer
Bootstrap Date picker and moment.js jalali calendar
I'm using bootstrap datetimepicker in my project.
I need to change it to jalali calendar, so:
I used locale:'fa' in datetimepicker initializing code
I added moment-jalaali.js after moment.js
So after adding moment-jalaali when I click on textbox…

Bahman Shafiei
- 395
- 5
- 22
3
votes
2 answers
How to convert JalaliDate to GregorianDate in yii2?
I want to convert jalali to gregorian. In input is taken in the jalali date
in view :
= $form->field($model, 'start_date')->widget(jDate\DatePicker::className())->textInput() ?>
controller:
$jstartdate = $model->start_date; // string(10)…

ParisaN
- 1,816
- 2
- 23
- 55
3
votes
1 answer
non-gregorian (jalali) FullCalendar using moment-jalaali plugin
I need a FullCalendar with Jalaali (Persian) calendar.
There is a nice plugin for moment.js called moment-jalaali.
As Moment objects are used throughout FullCalendar's API, I think there should be an easy way to convert default calendar to Jalali…

Najafsen
- 333
- 1
- 6
- 16