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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -