 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
cruiser Guest
|
Posted: Sat Feb 21, 2004 6:48 pm Post subject: Date field problem |
|
|
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
|
Posted: Sat Feb 21, 2004 9:52 pm Post subject: Re: Date field problem |
|
|
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
|
Posted: Sun Feb 22, 2004 2:30 am Post subject: Re: Date field problem |
|
|
| Quote: | you'll change your code like this, you should change your code like this :
|
I had repeat my words by mistake 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 |
|
 |
|
|
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
|
|