CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Getting Date and Time

    Does anyone knows how I can get the actual Date and Time.

    thanks


  2. #2
    Join Date
    Jul 1999
    Location
    USA
    Posts
    101

    Re: Getting Date and Time

    I don't know if this is what u want, but you can use the now() function.

    for ex: label1.caption = now()


    gives the current date and time


  3. #3
    Join Date
    Feb 2000
    Location
    garden grove, california
    Posts
    64

    Re: Getting Date and Time

    'if you want to get the date just do this
    Label1.Caption = Date
    'if you want to get the time just do this
    Label1.Caption = time
    'if you want to get the time continuesly, put that code in a timer and set teh interval to 1


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