Title
#suitescript
creece

creece

12/30/2016, 9:09 PM
require(['N/format'], function(format) { var date = format.parse({value: '2016-11-29T08:00:00.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)); });