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 .