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.
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.