Fixed parseDate to tokenize the Date string