Good Day! I am trying to set a date value in Suite...
# suitescript
r
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
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
thank you @battk