defined new date formater method to parse date in index view