Added thows exception logic to getDate(Object) and getDate(Object, Object) methods.
Corrected throws logic for getDate(Object, Object)