making changes to parseDate