I am reading date values from a file in which i am reading it as string object.
The date values varies in many format for example sew below:
01-Mar-2012
01/12/2012
01-12-2012
01.12.2012
01.Mar.2012
07/01/2008 12:00:00
07/01/2008 12:00:00 AM
What ever be the format i want the date object in format dd/mm/yyyy.
There is so many combinations.
SimpleDateFormat expect me to provide the pattern to format it .
Is there is any way to guess the pattern or create a date object from the given string?