Hi,
I am trying to update a date time field with a date from another field through plugin.The behaviour of the fields is 'Date Only'. I am getting the error "String was not recognized as a valid DateTime".
Sample Code:
Contact contact = new Contact(){
contactId = {Guid of the contact to be updated}
startDate = account.startDate (I have field 'startDate' in Account and Contact entity both)
}
service.Update(contact)
Is there any other way to update the same through plugin?
Note: I can not use js or system workflow since I have some other things to do in plugin.
Thanks