Last active
June 8, 2017 18:56
-
-
Save robtimp/9f58a6ec46c0d0d743dabb058380968e to your computer and use it in GitHub Desktop.
Last day of the month
This file contains hidden or 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
// Returns 30 or 31 (except for February) | |
NSCalendar.currentCalendar().rangeOfUnit(.Day, inUnit: .Month, forDate: NSDate()).length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment