iphone - How to get last day of the month in Cocoa? -
i make function input nsdate , output last date of month. guys know how in cocoa?
it's day before first day of next month. add month, set day 1, subtract day. setting day 1, you'll find easier go via nscalendar. see here details.
Comments
Post a Comment