BUG: to_datetime ignores argument combinations
- [x] closes #23760
- [x] closes #23758
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
