I am attempting to populate a journal entry with a...
# suitescript
l
I am attempting to populate a journal entry with a date pulled from a custom record. Any reason why I'm consistently getting the below error? Snippet of code to follow.. {"type":"error.SuiteScriptError","name":"INVALID_FLD_VALUE","message":"Invalid date value (must be M/D/YYYY)"
b
setValue for date fields expects a Date object
Stop trying to use moment to change the Date to a string
Alternativly, use the N/format module to change the Date to a string and use setText
l
@battk Thank you!!!