you want to be a little thoughtful if you go that way, if you cross a
daylight savings time boundary you may find you have one more or one
less hour than you might expect, ie it may not be a multiple of 24.
Not hard to sort out, but something you need to be aware of.
On 12-Sep-2009, at 9:15
Read the data into NSDate object, and compare it with
timeIntervalSinceDate: method.
This way, you'll get the time interval in seconds and then convert it
to unit of days.
Jesse Armand
(http://jessearmand.com)
On Sat, Sep 12, 2009 at 6:25 PM, Rajashekha
One way is the convert the dates to Julian date
http://en.wikipedia.org/wiki/Julian_day
and subtract the Julian day numbers.
Sincerely,
Mike
On Sep 12, 2009, at 7:25 AM, Rajashekhar Managoli wrote:
Hi All,
I am new to Objective C and COCOA and Iphone Delopment
I am reading two dates from
Hi All,
I am new to Objective C and COCOA and Iphone Delopment
I am reading two dates from UIDatepicker i want find the diffrence between
to days
say 12/09/2009 in DDMM format 16/09/2009 DDMM for and finde the
number of days in between.
Thnaks in advance
Regards
Raj
__