Get Time Format From Set Preferences Page via SuiteScript

User wants to get the Time Format from the Set Preferences page using SuiteScript 2.X

require(['N/runtime'],
     function(runtime) {‌
          var timeFormatNetSuite = runtime.getCurrentUser().getPreference({‌
               name : 'TIMEFORMAT'
          });
     console.log('Time Format = '+timeFormatNetSuite);
});
return: "H:mm"

Leave a comment

Your email address will not be published. Required fields are marked *