How can I compare two NSDates and return the amount of time between them.
For example:
2010-06-20 14:29:41 -0400
2010-06-20 14:53:29 -0400
should return something like: 23
or 24
(minutes), rounding the seconds because I don't really need the seconds.
try something like:
int intervall = (int) [date1 timeIntervalSinceDate: date2] / 60;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With