<A href="http://www.bleedyellow.com/blogs/umeli/entry/16_november_2011_04_49?lang=en" target="_blank">Urs Meli needed a function to convert a notesdatetime to a java timestamp.</A> He's posted his solution to the problem.