Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find out time of the day???

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

Could somebody please tell me how to find out time of the date in a project? (Using Delphi 6)

thanks
 
Roger32,

Consider, if you will:

Code:
  inputBox( 'FYI', 'At the tone:',
            dateTimetoStr( Sysutils.date + sysutils.time ) );

The date() and time() functions in SysUtils provides this. Note that it's generally best to precede calls to those functions with the unit qualifier (SysUtils) as there are other date() and time() functions in the RTL.

Hope this helps...

-- Lance
 
thanks for the response!
Could you tell me which component to use on the form??

thanks
 
Use a DateTimePicker from the Win32 Tab. Put the kind property to dtkTime S. van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top