fixed all warnings.

updated date methods to their iOS 8 equivalents.