Converting to Solar Calendar

Mehrdad ilchizadeh asked on March 1, 2014 08:54

I am wherever there is a calendar, including: Reports, calendar management, event and ... The Gregorian calendar is a lunar calendar to the solar become the Arabic language ... PersianCalendar In Visual studio this function using System.Globalization there. The sample code please help me thank you

    PersianCalendar pc = new PersianCalendar ();

                 pc.GetDayOfMonth (DateTime.Now);

Recent Answers


Mehrdad ilchizadeh answered on March 1, 2014 08:56

Solar Calendar=Persian Calender

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on March 15, 2014 21:43

Hi Mehrdad,

Regrettably, solar calendar is not built in Kentico's user interface by default. Therefore you would need to modify UI culture on your own - you can customize available Arabic localization packs - Localization packs.

You could also take inspiration from a few .NET API examples describing converting dates between calendars - Convert date from Hijri Calendar to Gregorian Calendar and vise versa, Various calendars in the ASP.NET Calendar Control.

Some useful links to the Developer's Guide: Configuring multilingual and RTL UI RTL languages

Best regards, Filip Ligac

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on March 16, 2014 02:06

hi please help me more.. i love kentico but this problem Persian Calendar... :( thank you

0 votesVote for this answer Mark as a Correct answer

hamid alaaye answered on June 6, 2014 04:44

Hello. I write the code of converting to solar calender. But i donot know which section of code should added. please guide me.

2 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on June 19, 2014 02:45

Hi Mehrdad and Hamid,

I found there is a Persian DatePicket control already available for ASP.NET so it should not be a problem integrating it to Kentico and maybe creating a new custom calendar web part based on this control.

Control can be downloaded from here - ASP.NET DatePicker (Persian/Gregorian).

2 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on June 19, 2014 02:50

Hi Thank you...plz help about add this control in kentico 8

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on June 19, 2014 10:28 (last edited on June 19, 2014 10:28)

Hi Mehrdad,

You can simply add the control to your project (e.g. you can create a new folder "MyControls" and copy the control's code files in there) and create a new web part which will utilize this control according to Developer's Guide - Developing web parts.

However, we do not have any built-in Persian calendar web parts so implementation is up to you or if you need some help and guidance, you can use our Consulting Services (consulting@kentico.com).

1 votesVote for this answer Mark as a Correct answer

Emad P answered on June 25, 2014 02:21

HI Hamid You Can Use javascript to convert Date to Persian. it's Simple but take a little bit more time to load Pages :) if U want to Know more,plz contact me by Email

2 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on June 25, 2014 07:07

hi mr.Emad

plz Help ME...

my email is:

Mehrdadilchizadeh@gmail.com

Thank You

0 votesVote for this answer Mark as a Correct answer

hamid alaaye answered on October 11, 2014 17:36

Hi Emad. first thank you for answer. please guide me how to use javascript to convert Date to Persian. my email adress is: hamid.alaaye@yahoo.com

0 votesVote for this answer Mark as a Correct answer

hamid alaaye answered on October 13, 2014 12:04

Hi Emad. can you help me? I wait for you. please send your solution to convert date.My email is hamid.alaaye@yahoo.com

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.