I am saving date\'s in a file in the following format as a string.
Sat Jul 21 23:31:55 EDT 2012
How can I check if 24 hours have passed? I am a
I would suggest storing your information as a java.util.Calendar which has a compareTo ()function.
compareTo ()
If you want to compare now to current time, you can use System.getCurrentTimeMillis() to get the current time.
System.getCurrentTimeMillis()