add date string parsing functions