I used this code and now the numbers 1-9 with zeros are last after 31. Example "28, 29, 30, 31, 01, 02,". what i want is to have it the regular way 01, 02, 03...09, 10, 11. how would i do this?
var everyDay = {};
for (im;im<=31;im++){
t = (im < 10 ? '0' : '') + im
everyDay[t] = (im < 10 ? '0' : '') + im;
}