I want to assign current date and time to field Rfleet_Protocol_Application_Date__c which datatype is date/time
Eg: Rfleet_Protocol_Application_Date__c =29/5/2016 2:28 PM
I tried in this way. But the value is not getting assigned.
javascript:
var newRecords = [];
var c = new sforce.SObject("Rfleet_Car_Set__c");
c.id = "{!Rfleet_Car_Set__c.Id}";
alert(new Date());
c.Rfleet_Protocol_Application_Date__c = new Date();
newRecords.push(c);
In alert am getting the current date and time.But am not able to assign the value. am getting the error as below !!
Please guide me !!
