DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
Sezar
Member


Joined: 18 Apr 2007
Posts: 7
Location: Iran-Mashhad

PostPosted: 23/04/07 17:26    Post subject: How to store "1386/2/29" in a TDate variable Reply with quote

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 Embarassed

_________________
thanks a lot...
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1231
Location: Tehran, Iran

PostPosted: 23/04/07 17:32    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Sezar
Member


Joined: 18 Apr 2007
Posts: 7
Location: Iran-Mashhad

PostPosted: 24/04/07 14:59    Post subject: You are inestimable Reply with quote

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?

_________________
thanks a lot...
Back to top
View user's profile Send private message
Johnny_Bit
Administrator


Joined: 15 Jun 2003
Posts: 397

PostPosted: 24/04/07 19:57    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Sezar
Member


Joined: 18 Apr 2007
Posts: 7
Location: Iran-Mashhad

PostPosted: 01/05/07 10:56    Post subject: Reply with quote

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
View user's profile Send private message
Johnny_Bit
Administrator


Joined: 15 Jun 2003
Posts: 397

PostPosted: 01/05/07 16:29    Post subject: Reply with quote

http://www.i18nguy.com/l10n/emperor-date.html

http://en.wikipedia.org/wiki/Japanese_era_name
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group