substring to extract year from longer dates