easy ;-)
the code should be:
var date = APPLICATION.getInfo().dateNowInternalFormat;
var currentYear = Convert.subString(date, 0, 4);
var currentMonth = Convert.subString(date, 4, 6);
you forgot "var".
easy ;-)
the code should be:
var date = APPLICATION.getInfo().dateNowInternalFormat;
var currentYear = Convert.subString(date, 0, 4);
var currentMonth = Convert.subString(date, 4, 6);
you forgot "var".