I am trying to convert Jan 2017 to a date of 1/1/2017 and I am hitting so many roadblocks. I can get it to be a text value of '1/1/2017' with a {formula}
but when I try to do to_date({formula},'MM/DD/YYYY')
it just gives an error.
Any thoughts?
I am trying to convert Jan 2017 to a date of 1/1/2017 and I am hitting so many roadblocks. I can get it to be a text value of '1/1/2017' with a {formula}
but when I try to do to_date({formula},'MM/DD/YYYY')
it just gives an error.
Any thoughts?
This is not exactly what you are asking for... But, why not use the NetSuite String to Date function? If you are trying to write to a date field in NetSuite, that function will provide you with the date that you are looking for.
var startDate={formula}; //No idea what your formula is. But, you said this returns 1/1/2017;
var newDate=nlapiStringToDate(startDate);