How to Format Date in Suite Script 2.0?

Hi All,

Please use below code to parse date into string in SuiteScript2.0:

In SuiteScript1.0:

     nlapiDateToString(d, format)

In SuiteScript2.0:

       format.format(options)

Module Used:

       N/format Module

Please comment if you have any question.

Thanks

Abhi
 

Comments