Test some features of Date library of JDK