         CalenderLabel.text = "\(date.year)年\(date.month)月\(date.day)日 (\(self.ReturnWeekday(date.weekday)))"
         
         currentnsdate = today
+        
+        self.SetupDayButton()
     }
     
     func nextday(){

    }
    
    var buttontilearray:[String] = []
    
    func SetupDayButton(){
        
        //ボタンのタイトルを日付から計算して生成する
        let todaynsdate = self.ReturnYearMonthDayWeekday(NSDate())
        self.SetDayArray(NSDate(),pivotweekday:todaynsdate.weekday)      //buttontilearrayへ値を格納する
        
        for i in 0...6{
            

        self.ShowAllData(CommonMethod().Changecalendar(currentnsdatesplit.year, calender: "A.D"), m: currentnsdatesplit.month, d: currentnsdatesplit.day)
        CalenderLabel.text = "\(currentnsdatesplit.year)年\(currentnsdatesplit.month)月\(currentnsdatesplit.day)日 (\(self.ReturnWeekday(currentnsdatesplit.weekday)))"
        
        self.SetupDayButton()
    }
    
    //受け取った文字列をシフト体制に分別して返す
