Use another function to parse date string