Jira Code: DB-14
This script is to add six months to the current date and convert it to the correct date format so that the date could be set to the NetSuite custom field.
date = new Date();
new_date = new Date(date.setMonth(date.getMonth() + 6));
//TO FETCH THE DATE MONTH AND YEAR FROM THE OBTAINED DATE
var d = new_date.getDate();
var m = new_date.getMonth() + 1; // THE MONTH STARTS FROM 0
var y = new_date.getFullYear();
var formatted_date = m + '/' + d + '/' + y