service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java
private static Date getDate(final String date) throws ParseException {
		if (RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT.length() > date.length()) {
			return new SimpleDateFormat(RIKSDAGEN_JAVA_SIMPLE_DATE_TIME_FORMAT, Locale.ENGLISH).parse(date);
		} else {
			return new SimpleDateFormat(RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT, Locale.ENGLISH).parse(date);
		}
	}
private static Date getDate(final String date) throws ParseException {
		if (RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT.length() > date.length()) {
			return new SimpleDateFormat(RIKSDAGEN_JAVA_SIMPLE_DATE_TIME_FORMAT, Locale.ENGLISH).parse(date);
		} else {
			return new SimpleDateFormat(RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT, Locale.ENGLISH).parse(date);
		}
	}
private static Date getDate ( final String date ) throws ParseException { if ( RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT . length ( ) > date . length ( ) ) { return new SimpleDateFormat ( RIKSDAGEN_JAVA_SIMPLE_DATE_TIME_FORMAT , Locale . ENGLISH ) . parse ( date ) ; } else { return new SimpleDateFormat ( RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT , Locale . ENGLISH ) . parse ( date ) ; } }
Gets the date.

@param date
the date
@return the date
@throws ParseException
the parse exception
Gets the date .