Hi guys I'm getting the following error in my rest...
# suitescript
a
Hi guys I'm getting the following error in my restlet:
"Invalid date value (must be DD/MM/YYYY)",
I'm creating a Vendor Bill and setting the trandate as follows -
vendorBill.setValue({fieldId: 'trandate', value: tranDate});
This is the tranDate variable being passed into the request body:
"tranDate": "01/01/2024",
Any help is appreciated 🙏
a
You need to use the
N/format
module to convert that to date object.
a
@alien4u perfect ty!