Page 1 of 1

How to store "1386/2/29" in a TDate variable

PostPosted: April 23rd, 2007, 5:26 pm
by Sezar
Hi
I use jalali date,in this date 2nd month has 31 days,
but (xxxx/2/29,xxxx/2/30;xxxx/2/30) dates are not valid in the gregorian date.
how can I store these dates into TDate variables or Database fields.
I can not write english well,because it's not my native language :oops:

PostPosted: April 23rd, 2007, 5:32 pm
by Kambiz
The method you have chosen is incorrect. Instead, convert the date to Gregorian and then store it as TDate type.

Look at the following topic for more information:
http://forum.delphiarea.com/viewtopic.php?t=10

You are inestimable

PostPosted: April 24th, 2007, 2:59 pm
by Sezar
Kambiz wrote:The method you have chosen is incorrect. Instead, convert the date to Gregorian and then store it as TDate type.
Look at the following topic for more information:
http://forum.delphiarea.com/viewtopic.php?t=10


Thanks for your help.
I have another question : Do you have information about type of the Japaneses dates?

PostPosted: April 24th, 2007, 7:57 pm
by Johnny_Bit
Hmm... As far as I remember there are couple of ways to store Japanese date... There's one that's basically similar to Gregorian, just add 10000 years... hmm... wow, It has been whie since I got time to read about some of that stuff.

PostPosted: May 1st, 2007, 10:56 am
by Sezar
Johnny_Bit wrote:Hmm... As far as I remember there are couple of ways to store Japanese date... There's one that's basically similar to Gregorian, just add 10000 years... hmm... wow, It has been whie since I got time to read about some of that stuff.


thanks dear johnny_bit.
can you explain more and write an example.
or send me a link about japanese date conversion.

PostPosted: May 1st, 2007, 4:29 pm
by Johnny_Bit