Date Conversion Utility (Persian <--> Gregorian)

Please discuss general Delphi programming topics here.

Date Conversion Utility (Persian <--> Gregorian)

Postby Kambiz » April 13th, 2003, 3:23 pm

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
Last edited by Kambiz on March 11th, 2006, 12:15 pm, edited 1 time in total.
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Ali Farhadi » May 14th, 2003, 5:07 am

hi,
thank you for your good solar utility.
it is the best date conversion utility that i have ever seen.

Thanks again,
Ali Farhadi
Ali Farhadi
Member
Member
 
Posts: 1
Joined: April 22nd, 2003, 5:57 am
Location: IRAN

Postby Kambiz » May 17th, 2003, 1:52 pm

I'm glad that you like it.

Cheers,
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Any Hijri / moon Calandar ?

Postby pcman » September 22nd, 2003, 3:02 am

How about a Hijri (moon/Moslims) Calendar? :wink:

pcman
pcman
Active Member
Active Member
 
Posts: 18
Joined: September 19th, 2003, 1:11 am

Re: Any Hijri / moon Calandar ?

Postby Kambiz » September 22nd, 2003, 10:01 am

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?
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Try these..

Postby pcman » September 24th, 2003, 12:30 am

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
pcman
Active Member
Active Member
 
Posts: 18
Joined: September 19th, 2003, 1:11 am

Postby Kambiz » September 24th, 2003, 12:36 am

With this amount of components, there's no need to write something new. :)
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby pcman » September 24th, 2003, 1:07 am

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
pcman
Active Member
Active Member
 
Posts: 18
Joined: September 19th, 2003, 1:11 am

Postby Kambiz » November 13th, 2005, 3:53 pm

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
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Date conversion

Postby iranac » July 5th, 2007, 8:12 am

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
iranac
Member
Member
 
Posts: 1
Joined: July 4th, 2007, 12:13 pm

Postby Kambiz » July 5th, 2007, 11:58 pm

Thank you for reviewing my code.

I'll try to figure out what has caused this wrong result.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Kambiz » July 6th, 2008, 8:18 am

Dear Arefi,

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

Once again thanks for informing me about the problem.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 5 guests

cron