require(['N/format'], function(format) { var da...
# suitescript
c
require(['N/format'], function(format) { var date = format.parse({value: '2016-11-29T080000.000Z', type: format.Type.DATE}); console.log('DOES NOT WORK --> date: ' + date + ' typeof: ' + typeof(date)); date = format.parse({value: '2016-11-29', type: format.Type.DATE}); console.log('DOES NOT WORK --> date: ' + date + ' typeof: ' + typeof(date)); date = format.parse({value: '11/29/2016', type: format.Type.DATE}); console.log('WORKS --> date: ' + date + ' typeof: ' + typeof(date)); });