Naveed Rafi
Naveed Rafi

Reputation: 2633

how to subtract two dates in objective c

I have a problem. I want to subtract a date from currect date example:

Result = Today - MySpeficied Date

Can any one help me with a code snippet?

Many Thanks. Best Regards, Naveed Butt

Upvotes: 2

Views: 760

Answers (1)

Graham Perks
Graham Perks

Reputation: 23400

Have a look at NSDate and timeIntervalSinceDate:.

Upvotes: 3

Related Questions