Last active
December 27, 2015 22:29
-
-
Save songzhiyong/7399443 to your computer and use it in GitHub Desktop.
IOS datePicker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDate *selected = [_datePicker date]; | |
NSTimeZone *zone = [NSTimeZone systemTimeZone]; | |
NSInteger interval = [zone secondsFromGMTForDate: selected]; | |
NSDate *localeDate = [selected dateByAddingTimeInterval: interval]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment