ninjatalon
Member
- Joined
- Sep 22, 2010
- Messages
- 24
- Programming Experience
- Beginner
i have several masked textbox connected to mysql database through a website i made, and what i'm trying to do is have these masked textbox automatically change the format what the user inputs to "hh:mm tt" so if the user inputs 6 or 600 or 6p it will automatically change it to the format to 6:00 PM . I know that i will have to use the Validated event and I've tried the Format(maskedtextbox1,"hh:mm tt") but can't seem to work.
Can anyone help me please. I would rather not use datetimepicker because i dont want the user have the option of using the dropdown. Thanks
Can anyone help me please. I would rather not use datetimepicker because i dont want the user have the option of using the dropdown. Thanks