`setDate()` is meant to accept dates in string format (there's a prominent example in the README) so I pass the date string straight through and let `setDate()` call `parseDate()` to do the conversion.