Skip printing of date if it was not set. Improved javadoc.