| View previous topic :: View next topic |
| Author |
Message |
Sezar Member
Joined: 18 Apr 2007 Posts: 7 Location: Iran-Mashhad
|
Posted: 23/04/07 17:26 Post subject: How to store "1386/2/29" in a TDate variable |
|
|
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
_________________ thanks a lot... |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1231 Location: Tehran, Iran
|
Posted: 23/04/07 17:32 Post subject: |
|
|
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
_________________ Kambiz
 |
|
| Back to top |
|
 |
Sezar Member
Joined: 18 Apr 2007 Posts: 7 Location: Iran-Mashhad
|
Posted: 24/04/07 14:59 Post subject: You are inestimable |
|
|
Thanks for your help.
I have another question : Do you have information about type of the Japaneses dates?
_________________ thanks a lot... |
|
| Back to top |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 397
|
Posted: 24/04/07 19:57 Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
Sezar Member
Joined: 18 Apr 2007 Posts: 7 Location: Iran-Mashhad
|
Posted: 01/05/07 10:56 Post subject: |
|
|
| 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.
_________________ thanks a lot... |
|
| Back to top |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 397
|
|
| Back to top |
|
 |
|