Setting text in a date format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satkin2
    New Member
    • Aug 2005
    • 1

    Setting text in a date format

    Hi,
    How do I make it so that when text is entered into a text box, it has to meet the format of dd/mm/yy or dd/mm/yyyy.

    I can't seem to find a sollution anywhere. I understand a date picker could be used but wouldn't know where to even begin with that, plus I would prefer a text entry if possible.

    Thanks

    Satkin2
  • miker26
    New Member
    • Sep 2005
    • 1

    #2
    Try a masked textbox.

    See http://www.codeproject.com/vb/net/Complete_Textbox.asp for some ideas.

    Mike

    Comment

    • mxkz
      New Member
      • Oct 2005
      • 4

      #3
      The sample in the web page http://www.codeproject.com/vb/net/Complete_Textbox.asp was created in vb.net, but the control used should work in VB6.

      The control is just like a textbox, but there are a few more properties, and there you create the text mask.


      mexxus
      Darval Technology

      Comment

      Working...