in my app , I used DateField to get future time and i save the time as string like as 1 Feb 2012 23:49 to make a schedule for work. And I want to compare this time with time current. If time schedule = time current + 4 hour, a dialog will appear to remind working.
But compare 2 times is so difficult . Because it depend on some cases example AM or PM, or if time schedule is 2 Feb 01:00 AM and time current is 1 Feb 21:00 PM , dialog also display.
Can anybody help me compare full correctly if time schedule = time current + 4 hours ?
Try this