public static DateTime iso8601DateTimeFromString(String dateTimeString) {
        try {
            return DateTime.parse(dateTimeString, ISO8601_DATE_TIME_FORMATTER);
        } catch (Exception e) {
            return null;
        }
    }
public static DateTime iso8601DateTimeFromString ( String dateTimeString ) { try { return DateTime . parse ( dateTimeString , ISO8601_DATE_TIME_FORMATTER ) ; } catch ( Exception e ) { return null ; } }
Parse a @see org.joda.time.DateTime from a String.

@param dateTimeString timestamp to parse
@return parsed @see org.joda.time.DateTime if parseable, null otherwise