Last day of current month

Below is the script which gives the last day of the current month

:arrow_down:

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);