Results 1 to 2 of 2

Thread: using format func. to validate time for textbox

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    32

    Post

    How do I use the Format func. and the Isdate func. to validate the time for a textbox.
    Rightnow it works for date or time formats , but I want it for only Time format(hh:mm:ss).


    Any ideas , anybody.

    Thanks


  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Try this to make sure the TextBox has nothing but the Time:

    Text1.Text = Format(CDate(Text1.Text), "Long Time")

    You can also try "Medium Time" and "Short Time" - see how all three work, and decide which is best for you.

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: RZvika@netvision.net.il
    ICQ: 19552879



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