Hi Ruslan,
If you want to compare Java dates, you can also use the getTime() method (which returns number of milliseconds since midnight of January 1, 1970) or use the compareTo() method.
To easily transform a NotesDateTime object to a Java date you can use the NotesDateTime.toJavaDate() method.