Hi everyone,
I'm trying to write a program that regarding dates. Specifically, what I'm trying to do is this : compare two dates to see if one is less than 10 days away from the other.
EG
Any help would be appreciatedCode:int days = 10; if ( thisDate - thenextdate > days ) System.out.println ( "Less that 10 days to go" ); else System.out.println ( "No problems" );
Thanks




Reply With Quote