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

Thread: Date and time

  1. #1
    Join Date
    Nov 1999
    Location
    New Zealand
    Posts
    8

    Date and time

    how do set date and time values to text box


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Date and time

    Text1.Text = Format(Now, "Short date") & " " & Format(Now, "short Time")



  3. #3
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Re: Date and time

    say text1 is the text object then

    text1.text = format(now(),"dd-mmm-yyyy") & format(now(),"HH:MM")



    There are different format styles you can use -
    "dd-mm-yyyy" or "mm-dd-yyyy" or "dd-mmmm-yyyy" to get different effect.


    Santulan

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