Results 1 to 3 of 3

Thread: [RESOLVED] how do I input the today's date into a text box automatically?

  1. #1

    Thread Starter
    Lively Member tarius222000's Avatar
    Join Date
    Jul 2005
    Location
    Jacksonville, FL
    Posts
    80

    Resolved [RESOLVED] how do I input the today's date into a text box automatically?

    okay,, I am an idot. How do get the date from the system clock so I can use it as a variable? variable name most likely "varDateEntered"
    Last edited by tarius222000; May 14th, 2006 at 09:40 PM. Reason: error in subject

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: how do I input the today's date into a text box automatically?

    If varDateEntered is defined (in a Dim statement) as a date, use varDateEntered= Now(). If it's defined as a string (which the contents of a textbox would be), use varDateEntered = Format(Now(), "mm-dd-yyyy") (or whatever format you want.)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Lively Member tarius222000's Avatar
    Join Date
    Jul 2005
    Location
    Jacksonville, FL
    Posts
    80

    Re: how do I input the today's date into a text box automatically?

    wootness.. thank you lots

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