public static Date parse(String date, String[] formats)
public static Date parse(String date, List<String> formats)
   public static Date parse(String date, String[] formats)   {   	Date result = null;   	      if(date == null)       {         throw new IllegalArgumentException("Date is null");      }      else      {      	String format = null;      	for(int i = 0; (result == null) && (i < formats.length); i++)      	{      		format = formats[i];	         SimpleDateFormat parser = new SimpleDateFormat(format, Locale.US);	         parser.setTimeZone(TIMEZONE_GMT);	         	         try	         {	            result = parser.parse(date);	         }	         catch(ParseException e)	         {	         	// Ignore error as the next format may work better	         }      	}      }            return result;   }