Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Date and a Time!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do I go about setting up a date and time in a text box????
 
I'm not sure what you want here, but...
TextBox1.Text = "03/20/2001 8:18 PM"

or

this formats the date and time it is right now and puts it in the txtbx
TextBox1.Text = Format(Now, "mm/dd/yyyy hh:mm AMPM")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top