Handles malformed date objects gracefully