Jalali calendar is a sidereal calendar & is the official calendar system in Iran and Afghanistan.
Questions tagged [jalali-calendar]
68 questions
0
votes
0 answers
Issue with date comparison using Moment.js in Jalali (Persian) calendar
I'm working with the Moment.js library on a project that involves the Jalali (Persian) calendar. I'm trying to compare dates in the Jalali calendar using Moment.js, but I'm encountering unexpected results. Specifically, the isSameOrAfter() method…

Vala Khosravi
- 2,352
- 3
- 22
- 49
0
votes
0 answers
how to change default calendar odoo to jalali calendar in odoo 16
I need to change default odoo 16 calendar to Jalali calendar.
I tried a lot, but I did not find a suitable module. Even if you introduce me to the documentation, I can develop a module for myself, but I don't know how to convert all Odoo calendars…

Omid Moghadasi
- 1
- 2
0
votes
0 answers
How to find last day of the months in jalali date in python?
from datetime import datetime
from service import jalali
from_date = jalali.Gregorian(date).persian_string("{}/{}/{}")
print(datetime.strptime('1396/4/28', '%Y/%m/%d'))
print(datetime.strptime(from_date, '%Y/%m/%d'))
datetime.datetime(1396, 4, 28,…

Homayoun
- 1
- 5
0
votes
0 answers
Why is the date recorded in Jalali format different from retrieving the same date from the database?
I use Angular 15.0 and ASP.NET Core 5 and SQL Server for my project. I install Jalali-moment in my SPA project to record and get Shamsi dates. When I record the date in Jalali format (e.g. 1401-10-10) of course, the time also is attached to the…

R. Nourmandi
- 157
- 12
0
votes
0 answers
convert python/django built-in class "calendar" to local calendar (Persian)
I created a html calendar using built-in calendar class in Django , now I have to convert it to local calendar "Persian", I tried using django-jalali-date package but couldn't get success result . and another issue is prevmonth and next month…

ashkan
- 15
- 3
0
votes
1 answer
How to convert the datetime format to jalali date in list of dictionaries
How to iterate through and convert the DateTime in a list of dictionaries to Jalali date format.
something like this
list_1 = [{'id': 103, **'date': '2022-07-21'**, 'a_name':'Account Receivable', 'ref': None,
'move_name': 'INV/2022/0012'},{'id':…

Morteza Mohebi
- 17
- 4
0
votes
1 answer
how to subtract two Solar Hijri column date
I have a data frame like this:
index
ft
rt
0
1401/04/21 13:36:00
1401/04/21 13:09:16
1
1401/04/21 14:00:00
1401/04/21 13:00:00
these column dates are based on "the Solar Hijri calendar".
and when I use
type()
for values in these…

alireza
- 113
- 6
0
votes
1 answer
ErpNext jalali calendar
How to add jalali clock and calendar to erpNext?
Is there a way to manually add the jalali calendar to ErpNext?

Jack Pate
- 169
- 4
- 15
0
votes
1 answer
Convert julian date to Gregorian before insert to database larav
Im using Morilog\Jalali package
I have datepicker input that The output like this: 1400/08/01
I want to convert this to gregorian and insert that to database
My database field is datetime
My Controller Store method is…

Sina
- 37
- 5
0
votes
1 answer
Python Pandas: Resampling on Jalali datetime indices
I was wondering is there any idea about how to do resampling on DateTime indices other than DatetimeIndex, TimedeltaIndex or PeriodIndex?
from datetime import timedelta
from khayyam import JalaliDate, JalaliDatetime
import pandas as…

sci9
- 700
- 1
- 7
- 21
0
votes
1 answer
Property or method "moment" is not defined on the instance but referenced during render. Make sure that this property
moment Vue warn]: Property or method "moment" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.…

saber tabatabaee yazdi
- 4,404
- 3
- 42
- 58
0
votes
0 answers
Use the Gregorian, Jalali and Hijiri calendars in the application
I need a Date picker to be able to set it's time types(Gregorian,Jalali or Hijiri)from setting and change it to each others too... and all the items that work by DATE will get new value...as I didn't have found any library to do this i tried to ask…

Pejman Gh
- 55
- 5
0
votes
1 answer
mistake to convert date time in angular with moment library in angular
When I want to convert the Gregorian date to Persian date, it converts the value of the minute in the date conversion to error.
For example I want to convert this date time to Persian date:
2020-09-14T16:51:00+04:30 must convert to this 1399/06/24…

kianoush dortaj
- 411
- 7
- 24
0
votes
3 answers
get solar year in react
how can I get current solar year local fa (not full date) in react?
I just need to get solar year (jalali) and I'm using this:
new Date().toLocaleDateString('fa-IR');
but it return current date (24/04/1399). I just want (1399)

Zahra Talebi
- 675
- 4
- 11
- 26
0
votes
0 answers
jalali datepicker problem of displaying the moon in 1397(jalali)
When choosing a month in 1397, you can only choose May
$( "#<%= renderResponse.getNamespace() %>fromDate").datepicker({
dateFormat: 'yy/mm/dd',
changeMonth: true,
changeYear: true,
showButtonPanel: true,
maxDate: new Date(),
…

user9383073
- 1
- 2