fromString(String string, ConverterContext context) Converts from a String to a Calendar.
Parameters: string - the string to be converted. Parameters: context - the context.
Converts from a String to a Calendar.
Parameters: string - the string to be converted. Parameters: context - the context. It could be DATETIME_CONTEXT, DATE_CONTEXT or TIME_CONTEXT. the Calendar object. If the string is null or empty, null will be returned. If the string cannot be parsed as a date, the string itself will be returned.