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
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
I use this code,no problem.
var a,b:tdate;
a:=EncodeDate(1420,12,12);
b:=a-1;
menxin
var a,b:tdate;
a:=EncodeDate(1420,12,12);
b:=a-1;
menxin
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
Motaz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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