Click here to Skip to main content
15,886,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I Want to Accept date from user in dd/mm/yyyy format like datetimepicker control in .NET.

If maskEdit Control can do that please tell me how?
if any other efficient way is available please suggest.

Please help.
Posted

Bad idea. DateTimePicker is better :-)

—SA
 
Share this answer
 
Put the mask edit on the form and in its mask property and set its mask property.
 
Share this answer
 
Comments
[no name] 9-Jun-11 14:50pm    
thanks its working.
but another problem!
if any one enter 77/44/6547 then
how to validate?
dd/mm/yyyy format
and how store it in database in mm/dd/yyyy or yyyy/mm/dd format.
Please help.
 
Share this answer
 
v3
Comments
[no name] 9-Jun-11 14:53pm    
is it will work for VB 6.0
Monjurul Habib 9-Jun-11 15:22pm    
just updated answer.previous link was wrong.
[no name] 9-Jun-11 16:41pm    
thanks
but how to check that entered date is a valid Date or not.
and how to set the current date to the control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900