Add API for parsing dates.