from pathlib import Path
from datetime import datetime


def create_date_path(root: Path, date: datetime) -> Path:
    """Create path form a root path and a date."""
    return root / Path(str(date.year)) / Path(str(date.month)) / Path(str(date.day))