[RESOLVED] Best fool-proof way to input time
Alright guys. I want a full proof way to enter time. I am using a mysql database, which *can* accept a time stamp. Don't know if VB supports it natively. I would like a simple user interface to assign a start time/end time. Which could in theory be military or standard 12 hour. If military (I've already created a converter which doesnt work right). I've tried masked edit, but I need something that will just work. Something that doesn't require pages of API calls and what not. Thanks a lot for the help.
Re: Best fool-proof way to input time
Enter what type of time? Is it user defined (does the user enter it)? Do you just want a method to enter a time that exists, such that it rejects something like 25:61:61 ?
In other words, I don't understand what you want.
Re: Best fool-proof way to input time
It is through a GUI. The user inputs the time, sorry for not being specific.
also just to the nearest minute, so no seconds at all.
Thanks for the quick response :)
Re: Best fool-proof way to input time
Why wouldnt MaskedEdit work? You may need to validate and format it yourself.
Re: Best fool-proof way to input time
dee-u. So your saying take the validation, and check if it meets a criteria, if so go ahead and use it. If so. I will do that. I just wanted to infer about this. So basically this is Resolved. Thanks.
Re: [RESOLVED] Best fool-proof way to input time
Yap, when we want to fool-proof some data then we have to validate it ourselves. :) I did noticed you said "full proof"....
Re: [RESOLVED] Best fool-proof way to input time
If you want a GUI, use the Date-Time Picker. Sorry I was late...