posted 11 years ago
have a text field, named "datedtext", which accepts date from user.
The property associated with date is of Date datatype in my entity class. What i want is that when the user enters the date and press enter, it should check whether it complies to format given.
Here is what i tried
How can i check whether it is in a given format? If it complies, parse() method will convert it into Date object.
All suggestions are welcomed.
Thanks