Bookmark Topic Watch Topic
  • New Topic

Parsing dates entered in different formats  RSS feed

 
Serge Glaeser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this thread. Continue the discussion there.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!