Hi Pawel,
25/10 is the day daylight savings time changes, so just adding 24 hours to the date, doesn’t bring you to the next day.
Try this instead, it uses the feature of javascript that you can ask for day 40 of a month, or month 15 of a year etc. and it will give you the correct day in the next month/year.
var day_slider = thisComp.layer("CONTROL").effect("DAY")("Slider");
var month_slider = thisComp.layer("CONTROL").effect("MONTH")("Slider");
var year_slider = thisComp.layer("CONTROL").effect("YEAR")("Slider");
var how_many_days = thisComp.layer("CONTROL").effect("HOW_MANY_DAYS")("Slider");
var start_date = new Date(0);
start_date.setHours(0); // midnight
var lista = new Array();
for (j=0;j<=how_many_days;j++){
start_date.setFullYear(year_slider);
start_date.setMonth(month_slider-1);
start_date.setDate(day_slider); // change the day last, so the year/month will automatically roll over
lista.push(start_date+"\n");
day_slider++;
}
lista;