```/** * @NApiVersion 2.1 */ require(['N/format'...
# suitescript
x
Copy code
/**
 * @NApiVersion 2.1 */

require(['N/format'],
    function(format){

              // Assume number format is 1.000.000,00 and negative format is -100
               var initialFormattedDateString = "07/28/2015";
        var parsedDateStringAsRawDateObject = format.parse({
            value: initialFormattedDateString,
            type: format.Type.DATE
        });
        var formattedDateString = format.format({
            value: parsedDateStringAsRawDateObject,
            type: format.Type.DATE
        });
var y = 0;


   });
x
Huh, so the docs are terrible.
s
docs have problems (it's inevitable), I would certainly not call them terrible