I have a String with several dates, for example:
[20-Jul-2012 5:11:36,670 UTC PM, 20-Jul-2012 5:11:36,683 UTC PM]
How do I read this string and
You can try:
parsePos = new ParsePosition(1); while((date = format2.parse(yourString, parsePos)!=null){ //use date }