fixed exception message for invalid datetime