Changed getting date from GregorianCalender to Date & SimpleDateFormat