dilawarkhan1100 - Tuesday, August 22, 2017 1:21 PM
No one knows what the the data you are trying to convert looks like and the error and function are for Oracle. So it might be the third line or a problem towards the bottom of that script. Try changing the format mask as the month in the string is not seen as a valid month. If that doesn't work, migrate the database to SQL Server.
Oracle / PLSQL: TO_DATE Function
Sue