Connecting Tech Pros Worldwide Forums | Help | Site Map

Setting text in a date format

Newbie
 
Join Date: Aug 2005
Posts: 1
#1: Aug 23 '05
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

Newbie
 
Join Date: Sep 2005
Location: London
Posts: 1
#2: Oct 1 '05

re: Setting text in a date format


Try a masked textbox.

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

Mike
Newbie
 
Join Date: Oct 2005
Location: Australia
Posts: 6
#3: Oct 8 '05

re: Setting text in a date format


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
Reply


Similar Visual Basic 4 / 5 / 6 bytes