The weeks property (number) sets the number of weeks to be displayed in the weeks view.
1
dp.viewType = "Weeks"; dp.weeks = 6;