^^^ Getting this following error
# suitescript
v
^^^ Getting this following error
s
that's not a date. That's a month (or day?) and year.
v
They require
mm/yyyy
j
use this
Copy code
var ccExpireDate = format.parse({
	type: format.Type.MMYYDATE,
	value: '12/2019'
});
and pass that into the field
v
I tried it, but get an error of format undefined.
j
you need to import N/format into your script
v
Thank you it worked 🙂
👍 1