Moving the DateFormat function from formatter to parseDate