Const method does not compile in case the DATE is installed

No match.