Changed to java.util calendar system

Changed the system to use java.util calendar system instead.