Page 1 of 1

Date Conversion Utility (Persian <--> Gregorian)

PostPosted: April 13th, 2003, 3:23 pm
by Kambiz
I have a set of functions to manage date in Solar calendar system (Iranian Calendar System) and converting the date from this system to Gregorian calender system and vise versa.

If you need these functions for use in your applications, Solar.zip is available to download for free. The zip file contains also a demo that shows how easily you can store date in a date field as TDateTime data type but display and edit it in data controls in different calendar systems.

Greetings,
Kambiz

Latest Update: SolarDate2005.zip for Delphi 2005 and later

PostPosted: May 14th, 2003, 5:07 am
by Ali Farhadi
hi,
thank you for your good solar utility.
it is the best date conversion utility that i have ever seen.

Thanks again,
Ali Farhadi

PostPosted: May 17th, 2003, 1:52 pm
by Kambiz
I'm glad that you like it.

Cheers,
Kambiz

Any Hijri / moon Calandar ?

PostPosted: September 22nd, 2003, 3:02 am
by pcman
How about a Hijri (moon/Moslims) Calendar? :wink:

pcman

Re: Any Hijri / moon Calandar ?

PostPosted: September 22nd, 2003, 10:01 am
by Kambiz
pcman wrote:How about a Hijri (moon/Moslims) Calendar? :wink:

pcman


The Iranian Calendar is straight forward and even more accurate than Gregorian Calendar.

Hijri (Muslims) Calendar based on moon, and I think writing conversion for this calender is not so easy. Do you know any good reference on the net about Hijri calendar to study?

Try these..

PostPosted: September 24th, 2003, 12:30 am
by pcman
Here are some useful links:

Moon calculations component w/source
http://www.hoerstemeier.com/moon.htm

All calendars you could think of, w/o source
http://www.bigwig.net/eurosoft/calendar.htm

Hijri date conversion component w/source, Direct Download:
http://www.arabdevelopers.com/vcl/index ... load&fid=2

I have never used any of the above components, yet!.

Regards,
pcman

PostPosted: September 24th, 2003, 12:36 am
by Kambiz
With this amount of components, there's no need to write something new. :)

PostPosted: September 24th, 2003, 1:07 am
by pcman
Well,

The 1st component has a seperate EXE program that is somewhat toward
jewish calendar.

The 2nd is a stand alone EXE program. Looks like a Mac UI.

The 3rd is a hijri calendar component. But i thought someone professional
could look at it and see if it has any bad programming or potential
problems.

I just started programming in delphi. I know i will need the hijri date
conversion later. So i am just preparing for the worst!

pcman

PostPosted: November 13th, 2005, 3:53 pm
by Kambiz
Hi,

I've improved my utility for converting dates in Iranian Calendar System to Gregorian Calendar System and vice versa.

The new release is not compatible with the previous one, and can be used only in Delphi 2005.

Here is the link to download:
http://www.delphiarea.com/products/misc/SolarDate2005.zip

Cheers,
Kambiz

Date conversion

PostPosted: July 5th, 2007, 8:12 am
by iranac
Hi,
I'm very intersted in date conversion so I have examined many algorithms. Yours is nice but you had better check date G1961-3-20 and P1339-12-29.

Regards
Arefi

PostPosted: July 5th, 2007, 11:58 pm
by Kambiz
Thank you for reviewing my code.

I'll try to figure out what has caused this wrong result.

PostPosted: July 6th, 2008, 8:18 am
by Kambiz
Dear Arefi,

Finally I found a free time to fix the calendar conversion problem.

Once again thanks for informing me about the problem.