Click to See Complete Forum and Search --> : How to get system date and time


yang
July 22nd, 1999, 12:35 PM
I created a form, and there is a command button "Date/Time". When the user click on the command button, there will another form coming up and show the current date and time. I already created both of forms, and i just don't know how to get the system date and time, and show in the second form?

I will highly appreciated any help.

allen

Shine B.
July 22nd, 1999, 12:48 PM
Please take a look into CTime::GetCurrentTime() or COleDateTime::GetCurrentTime().

Good luck!