Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Time Format?


Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2004, 05:14 AM
Blaaboy Blaaboy is offline
Freshman
 
Join Date: Jun 2003
Posts: 38
Default Time Format?


How can you just enter time in 24 hour format into a text box?

i.e. only 00.00 to 23.59

Thanks

Blaaboy
Reply With Quote
  #2  
Old 05-05-2004, 05:29 AM
peadar peadar is offline
Regular
 
Join Date: Mar 2004
Location: IRELAND
Posts: 95
Default

Code:
text1.text = left(time,5)
__________________
Peadar
Reply With Quote
  #3  
Old 05-05-2004, 05:31 AM
malloc malloc is offline
Senior Contributor
 
Join Date: Feb 2004
Location: The land of Oz
Posts: 851
Default

Use the masked edit control or write code in the keypress event.
__________________
malloc

-| Use [vb][/vb] tags | Forum guidelines | Get FireFox | Google |-
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Format? BL69 Communications 1 02-23-2004 03:31 AM
Time format question DarraghCoy General 19 02-06-2004 06:23 AM
how do i change AM/PM format to hh:mm with SQL? lotte Database and Reporting 15 12-29-2003 08:58 PM
evaluating time verses curent by 12:00 ? ICE_BLUE General 20 07-22-2003 11:16 AM
time functions khl623 General 3 11-27-2001 05:03 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->