return Dates.fromJsonDate(buffer, startIndex, endIndex);
} else if (Dates.isISO8601(buffer, startIndex, endIndex)) {
return Dates.fromISO8601(buffer, startIndex, endIndex);
} else {
throw new JsonException("Unable to convert " + stringValue() + " to date ");
}
} else {
throw new JsonException("Unable to convert " + stringValue() + " to date ");
}
} else {
return new Date(Dates.utc(longValue()));
}