Questions tagged [jalali-calendar]

Jalali calendar is a sidereal calendar & is the official calendar system in Iran and Afghanistan.

49 questions
83
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,515
  • 3
  • 16
  • 16
53
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
  • 6,520
  • 12
  • 37
  • 61
12
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,272
  • 3
  • 12
  • 25
6
votes
1 answer

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
  • 355
  • 2
  • 15
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
  • 672
  • 1
  • 8
  • 32
5
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
  • 87
  • 2
  • 5
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
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
  • 567
  • 1
  • 9
  • 28
3
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
  • 116
  • 6
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 : field($model, 'start_date')->widget(jDate\DatePicker::className())->textInput() ?> controller: $jstartdate = $model->start_date; // string(10)…
ParisaN
  • 711
  • 7
  • 39
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
  • 283
  • 1
  • 5
  • 13
2
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…
2
votes
2 answers

how to use persian JDF date class?

I found a class for convert Gregorian date to Jalali date JDF.java public class JDF { /** * Main: The default constructor uses the current Gregorian date to * initialize the other private memebers of the class (Iranian and Julian …
2
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…
1
vote
2 answers

How to show alternative calendar dates in mplfinance?

TL;DR - The issue I have an mplfinance plot based on a pandas dataframe in which the indices are in Georgian calendar format and I need to have them displayed as Jalali format. My data and code My data looks like this: open high …
1
2 3 4