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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Time in a TextBox

Status
Not open for further replies.

jnavarro

Programmer
Dec 1, 2003
89
US
Having a little problem with formating time in a text box...

Attempting to format a time as hh:mm tt in a text box and it won't return a value.


txtstart.text=format(txtstart.text,"hh:mm tt")


Thanks in advance
 
tee hee... yes been there...

that would work great in VB, howeve in VB.Net you probably just returned "hh:mm tt" into txtstart.text..

TxtStart.Text = Strings.Format(CDate(txtStart.Text), "hh:mm:ss")

Should work...
 
Thanks I have spend hours trying to figure this out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top