question: public static DateTime parseDateTimeChoice ( String value ) throws NumberFormatException { NumberFormatException exception ; try { return DateTime . parseDateTime ( value ) ; } catch ( NumberFormatException e ) { exception = e ; } try { return DateTime . parseDate ( value ) ; } catch ( NumberFormatException e ) { exception = e ; } throw exception ; }
target:  Parses an XML value that's either an xs:date or xs:dateTime string.