https://netsuiteprofessionals.com logo
r

Rywin

04/26/2022, 7:47 AM
Good Day! I am trying to set a date value in SuiteScript 2.0 my variable is a date --> 26-Apr-2022 setting it on the field expirationdate in the inventory detail causes the error "The field expirationdate contained more than the maximum number ( 10 ) of characters allowed." Do you have any suggestions for this? Thank you.
b

battk

04/26/2022, 7:56 AM
before working with Dates, you need to know the difference between a Date and a String
beyond that, you use Record.setValue with a Date and Record.setText with a String
r

Rywin

04/27/2022, 2:59 AM
thank you @battk