|
|
#1 |
|
APp to o calculate number of days between two dates
Hello
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? Thanks
|
|
|
|
0
|
|
|
#2 |
|
__________________
|
|
|
|
0
|
|
|
#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:
http://developer.apple.com/library/ios/documentation/uikit/reference/UIDatePicker_Class/ 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. |
|
|
|
0
|
|
|
#4 |
|
Don't forget to add a little button that includes or excludes the final day.
__________________
There is no such thing as "Collective Wisdom" [13" MacBookPro 2.7Ghz, 27"Al iMac i7, Black MacBook 13", iPhone 4, iPad] |
|
|
|
0
|
|
|
#5 |
|
This is very suspect of a class assignment.
__________________
2012 11" MBA i7/8/256 2011 Mac Mini with 27" Thunderbolt Display Black iPad Mini 32GB Verizon Black iPhone 5 32GB ATT
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 05:48 AM.






2012 11" MBA i7/8/256
Linear Mode
