on-internet
← Community

How to retrieve all kinds of dates and temporal values from text

Stack Overflow ·

I wanted to retrieve dates and other temporal entities from a set of Strings. Can this be done without parsing the string for dates in JAVA as most parsers deal with a limited scope of input patterns. But input is a manual entry which here and hence ambiguous. Inputs can be like: 12th Sep |mid-March |12.September.2013 Sep 12th |12th September| 2013 Sept 13 |12th, September |12th,Feb,2013 I've gone through many answers on finding date in Java but most of them don't deal with such a huge scope of input patterns. I've tried using SimpleDateFormat class and using some parse() functions to check if

Comments

Sign in or sign up to comment and upvote.

No comments yet.