Parse date intervals from strings.