NSDateComponent week is deprecated in ios8
changed week to weekOfYear