Questions tagged [persian-calendar]

The Persian calendar, which is also known as the solar hijri calendar, is a calendar that coincides with the equinoxes.

More information about Solar Hijri calendar can be found here: https://en.wikipedia.org/wiki/Solar_Hijri_calendar

70 questions
25
votes
4 answers

How can I Change type Of Django Calendar With Persian Calendar?

I use Django 1.6. When I have a field that have DateTimeField type, Django automatically use Django calendar. But in Iran we use Persian Calendar (or Jalali Calendar or Farsi Calendar). How can I change Django auto generation because it generate…
Ardalan Shahgholi
  • 11,967
  • 21
  • 108
  • 144
11
votes
5 answers

Convert Jalali calendar to Gregorian by PHP in CodeIgniter

I need to store Date in Persian (Jalali) date in MySQL. I'm using CodeIgniter. I need something like this: $Date = Jalali_to_Georgian(1393,5,28) // Output: "2014/08/19" Do I need to create a new library for this?
rostamiani
  • 2,859
  • 7
  • 38
  • 74
7
votes
4 answers

Storing non-Gregorian dates in Mysql's date type

I have a mysql table that has a column with date type. I'm going to store non-Gregorian date in this column (i.e. Jalali date). I tested this by using phpMyadmin and storing a Jalali date and no error happend. Is it a good idea to store…
Ariyan
  • 14,760
  • 31
  • 112
  • 175
5
votes
3 answers

Is there a way to show Persian date in x-axis of Matplotlib plot

I want to plot a dataframe in which the index consists of datetime values based on Iranian calendar. I want to set the x-axis labels as following: import matplotlib.dates as mdates axes.scatter(df_day.index.values, df_day.loc[:, item],…
Shahriar.M
  • 818
  • 1
  • 11
  • 24
5
votes
1 answer

vuetify v-date-picker not start by first day of month in persian locale

Consider the following code As you can see in the following picture, In Persian calendar…
Mohammad Momtaz
  • 545
  • 6
  • 12
5
votes
3 answers

Persian culture in Windows Server 2012 r2

In our development machine which is running on Windows 10, "fa-IR" culture works fine and all dates display using Persian calendar. But when we deploy our app on Windows Server 2012 r2, datetime is still in Gregorian.
moo
  • 51
  • 1
5
votes
2 answers

How to set default date to Persian date in PHP?

How to set default date to Persian date in PHP? Say, if I echo this function date('Y-m-d') then it will show 2018-03-05 but I want 1396-12-14 the Persian date
5
votes
2 answers

How to implement Persian Calendar

Is there any implementation of Persian calendar DatePicker on JavaFx? There is no Persian chronology to use on DatePicker to achieve a Persian calendar
woshka
  • 122
  • 3
  • 9
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…
3
votes
1 answer

[Vue warn]: Failed to mount component: template or render function not defined

I want to use an npm module which is based on Vue: Persian Date & Time Picker For Vue.js because I'm not familiar with node.js, I used wzrd.in to get a window.vuePersianDatetimePicker…
Omid Sadeghi
  • 675
  • 7
  • 16
3
votes
2 answers

How convert from persian date to gregorian date in android

I use a PersianDatePicker to select a date. This works fine, but I want to convert selected Persian date to a Gregorian date. I have found some code and example from internet but the calculation is not right. When I select current date in Persian…
guguli
  • 249
  • 3
  • 7
  • 16
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…
3
votes
2 answers

How to use PersianDatePicker in Razor?

I want to use PersianDatePicker. How can I use it in razor (EditorFor) instead of since I want to use viewbag as today date, and set the value using @Model.
Elnaz
  • 2,854
  • 3
  • 29
  • 41
3
votes
1 answer

Converting Persian date to Gregorian date

I am trying to convert a specific Persian date to Gregorian with no success. I have tried below code but I get compiler error saying: DateTime does not contain a constructor that takes 4 arguments. using System.Globalization; DateTime dt = new…
azad
  • 65
  • 1
  • 6
3
votes
4 answers

How to compare two persian date to find out which one is greater?

I want to compare two persian dates to find out which one is greater, I use this function : public static List GetAllMatchDrawHistory(string startDate, string endDate) { using (var db= new ReceiveSendEntitiesV5()) { …
pmn
  • 2,176
  • 6
  • 29
  • 56
1
2 3 4 5