I want to compare date1(2013/1/21 21:22:30) with date2(now) in one method
I want to get how much date,hours,minutes and second Remaining form Date 1
String mDate,mHour,mMinute,mSecond;
DateComparedateTime(String Date1)
{
// compare Date1 with now
mDate = Difference date with Date1 and Now;
mHour = Difference hour with Date1 and Now;
mMinute = Difference minute with Date1 and Now;
mSecond = Difference second with Date1 and Now;
}
how can create this method ?