Error: splitDateObject did not receive a date object.