posted 13 years ago
Hello
I'm having a hard time parsing dates that are entered in different formats. Is there a general way to do that? I have a text field where the user can enter a date (so obviously he can enter any format) ex.
10102010
101010
10.10.2010
10.10.10
or the date can be invalid (505002 or anything else)
Is there a general approach on how to handle things like that? i found the classes simpledateformatter and dateformatter, but they can handle only one format.
any tips appreciated.
thanks