2
I have an array that contains all months of the year. I want to create a calendar.
var meses= new Array("Janeiro","Fevereiro","Marco","Abril","Maio","Junho","Julho","Agosto","Septembro","Outubro","Novembro","Dezembro");
With this array, how to make for the different days of the months, and for the month of February.
I don’t understand what you’re getting at.
– Maniero
Distinguish the months with your days, so you can present in a table. In the case of February, or 28 or 29 days.
– akm
I still don’t get it, but you want one array with the total days of each month? Something like this?
var ultimoDiaMeses= new Array(31,28,31,30,31,30,31,31,30,31,30,31);
. I would have to do a leap check to use 28 or 29 days for February. I can’t imagine what those 27 days you talked about.– Maniero
Yes I have a cycle to show every month until the end of the array (months.length). Now what condition to show home days.
– akm