What is wrong with this format while am upserting the date in an object?
Route__c r =new Route_c();
r.Plan_Date__c = date.parse(strDate);
upsert r;
In the debug log, I get the error as |FATAL_ERROR|System.TypeException: Invalid date: Test123
Here Test123 is the different text to be inserted which accepts as Date and throws an error.