var date = new Date();
var rec = nlapiCreateRecord('customrecord_ct_hr_translation'); //Type of the new record being created, if setting value on an existing record Load the record instead of creating one
var date1 = nlapiDateToString(date,'datetimetz');
rec.setFieldValue('name','xxx'); //Set the Name of the record
rec.setFieldValue('xxx',date1); // Internal id of the custom field of type : Date/Time
nlapiSubmitRecord(rec,true);
No comments:
Post a Comment