|Nov 26, 2012, 05:57 PM||#1|
APp to o calculate number of days between two dates
I am looking to develop an app for calculating no of days between two dates.
Can somebody pls provide me some algo or some reference link or pseudocode?
|Nov 26, 2012, 06:39 PM||#3|
In addition to NSDate to find the time interval between two dates, you'll also want to use an NSDatePicker so that the user can input two dates:
Finally, some basic knowledge about how integer division and modulus work so that you can convert the time interval to seconds, minutes, hours, and days will help... Unless UIKit happens to have a method that does that already built in? I'm not sure which class would hold such a method...
Last edited by ArtOfWarfare; Nov 26, 2012 at 06:44 PM.
|Nov 26, 2012, 11:26 PM||#4|
Don't forget to add a little button that includes or excludes the final day.
There is no such thing as "Collective Wisdom"
[ iPhone 5s, iPad Mini, 13" MacBookPro 2.7Ghz, 27"Al iMac i7, Black MacBook 13"]
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|[FREE] App for runners to calculate pace/time/splits||waterskier2007||iPhone and iPod touch Apps||0||Apr 8, 2014 10:41 AM|
|iPad: Ios app store review dates are missing||Silver78||iPad||2||Oct 26, 2013 09:38 AM|
|Best app for reminders (with dates)?||Broph||iPhone and iPod touch Apps||1||Mar 21, 2013 06:49 AM|
|Big oops..ported number out of AT&T 10 days before contract end||jokerz126||iPhone||44||Oct 5, 2012 02:45 PM|
|Calendar app that allow users to cross out dates||kylera||Mac Applications and Mac App Store||3||Jul 4, 2012 01:50 PM|
All times are GMT -5. The time now is 01:43 AM.