S
sriram
Hi All
Lets say I have 2 dates
Date d1 = new Date(2003,11,10,01,20);
Date d2 = new Date(2003,11,10,09,20);
They repesent 2 different times on the same day. Lets
say I want to know if the dates d1,d2 represent same day(immaterial of
time), I think one way of doing it is using simpledateformat
(converting this dates to strings and checking whether they are
equal). I am curious to know if there is any other effecient way.
Thanks
sriram
Lets say I have 2 dates
Date d1 = new Date(2003,11,10,01,20);
Date d2 = new Date(2003,11,10,09,20);
They repesent 2 different times on the same day. Lets
say I want to know if the dates d1,d2 represent same day(immaterial of
time), I think one way of doing it is using simpledateformat
(converting this dates to strings and checking whether they are
equal). I am curious to know if there is any other effecient way.
Thanks
sriram