Used Calendar instead of Date class error and delete a typo