CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    22

    How to get system date and time

    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



  2. #2
    Join Date
    Apr 1999
    Posts
    23

    Re: How to get system date and time

    Please take a look into CTime::GetCurrentTime() or COleDateTime::GetCurrentTime().

    Good luck!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured