Help me Out - Function and Array

Help me Out - Function and Array

    Hello experts, 

    can you help me out with these functions, I would like to get the list os holidays:

    1.     var oHoliday = [];

    2.     oHoliday = holidayList();    
    3.     $('#datetimepicker12').datetimepicker({
    4.       inline: true,
    5.       sideBySide: true,
    6.       minDate:new Date(),
    7.       disabledDates: oHoliday //The holidays llist will be insert here
    8.     });

    9.     function holidayList(){
    10.       var days ="";
    11.       $.get('/holidays/ajax/', function(oHoliday){
    12.         $.each(oHoliday, function(i, getHoliday) {
    13.           // oHoliday.push( getHoliday.day );
    14.           days += getHoliday.day;
    15.         }); 
    16.       });
    17.     return days;
    18.     }