src/org/ohmage/util/DateTimeUtils.java
public static DateTime parseIsoW3CDateTime(String value) {
		try {
			return
				ISO_W3C_DATE_FORMATTER.withOffsetParsed().parseDateTime(value);
		}
		catch(IllegalArgumentException e) {
			return
				ISO_W3C_DATE_TIME_FORMATTER
					.withOffsetParsed().parseDateTime(value);
		}
	}
/**
	 * Parses a string into a DateTime object that represents the time as long
	 * as it conforms to one of the W3C's specifications of the ISO8601
	 * standard.
	 * 
	 * @param value The string value to be parsed.
	 * 
	 * @return A DateTime object that represents the parsed value.
	 * 
	 * @throws IllegalArgumentException The value does not conform to the W3C
	 * 									specification of the ISO8601 standard.
	 */
Parses a string into a DateTime object that represents the time as long
as it conforms to one of the W3C's specifications of the ISO8601
standard.

@param value The string value to be parsed.

@return A DateTime object that represents the parsed value.

@throws IllegalArgumentException The value does not conform to the W3C
specification of the ISO8601 standard.
Parses a string into a DateTime object that represents the time as long as it conforms to one of the W3C ' s specifications of the ISO8601 standard . @param value The string value to be parsed . @return A DateTime object that represents the parsed value . @throws IllegalArgumentException The value does not conform to the W3C specification of the ISO8601 standard .
public static DateTime parseIsoW3CDateTime(String value) {
		try {
			return
				ISO_W3C_DATE_FORMATTER.withOffsetParsed().parseDateTime(value);
		}
		catch(IllegalArgumentException e) {
			return
				ISO_W3C_DATE_TIME_FORMATTER
					.withOffsetParsed().parseDateTime(value);
		}
	}
public static DateTime parseIsoW3CDateTime ( String value ) { try { return ISO_W3C_DATE_FORMATTER . withOffsetParsed ( ) . parseDateTime ( value ) ; } catch ( IllegalArgumentException e ) { return ISO_W3C_DATE_TIME_FORMATTER . withOffsetParsed ( ) . parseDateTime ( value ) ; } }
Parses a string into a DateTime object that represents the time as long
 as it conforms to one of the W3C's specifications of the ISO8601
 standard.
Parses a string into a DateTime object that represents the time as long as it conforms to one of the W3C ' s specifications of the ISO8601 standard .