thanks guys, I'm trying to put a datetime from the systemnotes into a custom field, I found this works:
sysdate = sysdate.replace(/\s(?=\S*$)/,":00 ") //regex to add seconds to timedate so it will be accepted into field
nlapiSetDateTimeValue('custbody_customdatetimefield',sysdate);