I am writing a java code where I am selecting a field called description from SQL Server table and parsing the data on a space delimited. For example, the following data will be parsed by using a split method from object class which will now place the split data into an array of String result.
CASUAL GIFT BYRS ONLY 01/01/04-06/30/04 $0-$19 E
So result will have CASUAL, result will have GIFT, etc. I know that result will have 01/01/04-06/30/04, which is a DATE, but I just don't want to use result to get my date. Is there any Java method that will loop through each array element and find which array element contains the Date? Also, the Date can be sometimes in the following fomat. 1/1/04. Please advise.