Sina Meraji wrote:...will prompt user to enter Date and time and verify correct format.
Dates and times are particularly tricky, since you have 6 components (I assume), ALL of which might have something wrong with them.
One approach is to take each component separately, ie, year, then month, then day, then hour...etc, etc. Pretty simple, but maybe too laborious for your "users".
Another would be to use a
SimpleDateFormat to parse the whole
string, and use the messages from its Exceptions. Trouble is: I don't know how good they are.
You might also get some tips from
this page.
HIH
Winston