Generate calendar array.