CRM2016
I'm writing a plugin which is reading an xml file and inserting data to CRM.
I have tried every which way but loose to try and get this data into crm.
CRM new_reportdate field Date(only)
XML_ReportDate variable as Date
The xml file contains ProducedOn which is a sting "2016-10-01" ( 1st October 2016) ( being read as reader.value)
I have tried several different conversion, the latest being
XML_ReportDate = Date.ParseExact(Replace(reader.Value, "-", "/"), "dd/MM/yyyy",
System.Globalization.DateTimeFormatInfo.InvariantInfo,
Globalization.DateTimeStyles.None
I am getting the error Date is less than the minumum value supported by CrmDateTime. Actual value: 01/01/0001 00:00:00, Minimum value supported: 01/01/1753 00:00:00