If you're reading a Date field value, it's returned as a String in NetSuite...so to get it in a JS Date object, you parse it using nlapiStringToDate()...
If it's the other way around and you want to get a JS native Date and put it in to a Date field, you need to do the reverse before setting field value (nlapiDateToString())