@staticmethod
def pack(val):
    """Return a string representation of ``val``.

        Args:
            val: The :class:`datetime.date` object to convert.

        Returns:
            The ISO 8601-representation of ``val`` (``YYYY-MM-DD``).
        """
    return val.isoformat() if val is not None else None
