code: public static Date parseToDate(final String datum, final String[] formats, final Locale locale)
  	{
  		for (final String format : formats)
  		{
  			final SimpleDateFormat sdf = new SimpleDateFormat(format, locale);
  			try
  			{
  				return sdf.parse(datum);
  			}
  			catch (final ParseException e)
  			{
  				// Do nothing...
  			}
  		}
  		return null;
  	}
docs: Returns a date-object if the array with the formats are valid otherwise null.
  
  @param datum
  The date as string which to parse to a date-object.
  @param formats
  The string-array with the date-patterns.
  @param locale
  THe Locale for the SimpleDateFormat.
  @return A date-object if the array with the formats are valid otherwise null.