function dates = nogapcalendar(date1,date2)

dates = [];

date=date1;
while date ~= date2
    year = floor(date/10000);
    month = floor(date/100)-year*100;
    if date-floor(date/100)*100 == eomday(year,month)
        if month == 12
            date = (year+1)*10000+100;
        else
            date = year*10000+(month+1)*100;
        end;
    end;
    date = date + 1;
    dates = [dates; date];   
end;

dates = dates(1:length(dates)-1);