Board index » cppbuilder » Q: getting the current date & Time

Q: getting the current date & Time

Hi,

I would like to get the current date/time from the system for output in a
log database.

What is the simplest way to get current date/time information from the
system?

Thanks, Michael.

 

Re:Q: getting the current date & Time


You can use GetSystemTime() from the WINApi or TDateTime from the VCL
Bye
Wolfgang
Quote
Michael Boeni wrote:
> Hi,

> I would like to get the current date/time from the system for output in a
> log database.

> What is the simplest way to get current date/time information from the
> system?

> Thanks, Michael.

Re:Q: getting the current date & Time


String TimeNow = Now();

Other Threads