I got from an XML file a list of string in this format:
yyyyMMddhhmmss
I need to compare this values to the current time.
I tried to do:
Using java Syntax Highlighting
- DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
- Date date = new Date();
- String timeNow = dateFormat.format(date);
- // start is a long variable, containing a number in the format above
- if ( start >= timeNow ) {
- // doSomething()
- }
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
But i got NullPointerException
Any hint?


