```purchaseOrderRec.setValue({fieldId: 'trandate',...
# suitescript
r
Copy code
purchaseOrderRec.setValue({fieldId: 'trandate', value: format.format({value: headers.formattedDocumentDate type: format.Type.DATE})});