Adapt date schema