Link to home
Start Free TrialLog in
Avatar of abuali
abuali

asked on

problem with hijri calender

hi,
in our country we used different calender in some case the date will be
something like "30/02/1420" and this will generate erorr i make some function to convert system date to needed date but some date will generate the erorr like above one .
how i can fix this problem ?
iam useing Delphi5
Avatar of Motaz
Motaz

Do not use StrToDateTime or EncodeDate with higri date, instead you have to write your own functions that convert higri calendar to gregorian date.

If you want to use this dates without any calculation, for example you want only to display it, you can use string data type instead of TDateTime or time staps, and so on.

Motaz

http://homepages.go.com/~azzoz/azzoz.html
I use this code,no problem.

var a,b:tdate;

a:=EncodeDate(1420,12,12);
b:=a-1;


menxin
Avatar of abuali

ASKER

Adjusted points to 150
Hi Abu Ali how are you, did you solve your problem, if not, please give me more details about your application which you want it to use hijri dates.

Motaz
ASKER CERTIFIED SOLUTION
Avatar of kifah
kifah

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial