I'm getting INVALID_TYPE_1_USE_2 error how to reso...
# suitescript
s
I'm getting INVALID_TYPE_1_USE_2 error how to resolve this
c
If it's in reference to a date field, you may need to use the format module.
You may want to share your code though, there's not really enough context in your question.
s
i have used so many date variable for some calculations
and i have formatted every date variable
lastDayOfMonth = FORMAT.parse({ value: lastDayOfMonth, type: FORMAT.Type.DATE });
var s_monthly_start_date = FORMAT.format({ value: d_montly_start_date, type: FORMAT.Type.DATE });
these two i have used for all date fields im refering in my script
b
more code needed, we dont know what inputs you are putting in
nor where you are using them
how you use the N/format module is too indirect
346 Views