Replaces deprecated function $this->parseDate() by static \Date::parse()