I want to compare two dates and i m trying to do this by using `timeIntervalSinceDate` method with the below code :

```
NSTimeInterval timeinterval;
timeinterval = ([dateTo timeIntervalSinceDate:dateFrom]/86400); 
NSLog(@"--- intertval= %d", timeinterval);

```

But I am always getting 0 difference though the dates are different. I tried many ways But not getting any solution.