Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Jonathan Vargas
Added: Jul 16, 2020 11:33 PM
Views: 96
Tags: no tags
  1.  var var fecha = record.getFieldValue('trandate').split('/');
  2.      var nuevafecha = nlapiAddDays(nlapiStringToDate("1/" + (Number(fecha[1]) + 1) + "/" + fecha[2]), -1);