Hello
I'm using this to get today's dat and time
Date now = Calendar.getInstance().getTime();
which returns this 'Tue May 17 15:39:01 BST 2005'
I'm bringing a date back from a db table and need to compare the difference between the 2 dates.
Firstly i need to make sure the date is the same
Secondly i need to see if the
java time has passed the time in the db value
I also need to see if the java time is <= 1 hour of the db time
So from the db the date is '2005-05-17 16:38:56'
Java i get this 'Tue May 17 15:38:56 BST 2005'
The date is the same, the java time hasn't gone beyond the time in the db value and there's an hour left before the java time is the same as the db time
Can someone show me how i do this
Many thanks