Fix doc errors for various datetime functions
- [x] Addresses parts of #59592
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.