Add error handling on datetime string conversion. Add example invalid datetime string.