BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date field problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
cruiser
Guest





PostPosted: Sat Feb 21, 2004 6:48 pm    Post subject: Date field problem Reply with quote



I'm using Acess db and to the date field of this database, i'm trying to
insert the selected date in MonthCalendar like MonthCalendar1.Date but when
i look into db, i see that my records are seems like that 18.02.2004
01:21:03. Because of this when i try to delete a record which is in
specified date for example "18.02.2004", it's not working. But if i fill
this fields manually, and turns it from 18.02.2004 01:21:03 to 18.02.2004,
my delete code is working. So i should find a way to insert the date like
18.02.2004 not 18.02.2004 01:21:03. Can you tell me a way for to do that ?

Regards,



Back to top
Oktay Sancak (ceoworks)
Guest





PostPosted: Sat Feb 21, 2004 9:52 pm    Post subject: Re: Date field problem Reply with quote



FormatDateTime function provides rich formatting of TDateTime values. If
you'll change your code like this, you should change your code like this :

FormatDateTime('dd/mm/yyyy', MonthCalendar1.Date);

Cheers,

- Oktay



Back to top
Oktay Sancak (ceoworks)
Guest





PostPosted: Sun Feb 22, 2004 2:30 am    Post subject: Re: Date field problem Reply with quote



Quote:
you'll change your code like this, you should change your code like this :

I had repeat my words by mistake Razz sorry about it.. :)

"Oktay Sancak (ceoworks)" <oktaysancak [a] yahoo [.] co [.] uk> wrote in
message news:4037d333 (AT) newsgroups (DOT) borland.com...
Quote:
FormatDateTime function provides rich formatting of TDateTime values. If
you'll change your code like this, you should change your code like this :

FormatDateTime('dd/mm/yyyy', MonthCalendar1.Date);

Cheers,

- Oktay







Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.