converted the string date to java.sql.Date using Calender