Try hh:nn - m is months.

[email protected] wrote:
> There are 2 messages in this issue.
> 
> Topics in this digest:
> 
>       1. TDateTimePicker problem
>            From: soonhuat ong <[EMAIL PROTECTED]>
>       2. Re: TDateTimePicker problem
>            From: [EMAIL PROTECTED]
> 
> 
> ________________________________________________________________________
> ________________________________________________________________________
> 
> Message: 1         
>    Date: Wed, 22 Jun 2005 23:02:08 -0700 (PDT)
>    From: soonhuat ong <[EMAIL PROTECTED]>
> Subject: TDateTimePicker problem
> 
> 
> I have a TDateTimePicker component with the name - 'dttimeStart' and set its 
> "Kind" property to dtkTime, and set the "Format" property to 'hh:MM' .
> 
> When user click at the Save button, the following code is executed. 
> 
> 
> procedure TfrmMain.bbtnSaveClick(Sender: TObject);
> begin
>   With Table1 do
>   Begin
>     FieldByName('Field1').AsString := 
> FormatDateTime('HH:mm',dttimeStart.Time); 
>     Post;
>   End;
> end;


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date: 6/22/2005



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to