Below is the script which gives the last day of the current month
var today = new Date();
var a = new Date(today.getFullYear(), today.getMonth()+1, 0);
var b = a.getDate();
var b = b.toString();
execution.setVariable("date",b);
Below is the script which gives the last day of the current month
var today = new Date();
var a = new Date(today.getFullYear(), today.getMonth()+1, 0);
var b = a.getDate();
var b = b.toString();
execution.setVariable("date",b);