def create_file_name(fmt_code, date):
    """Create file name from formatting code

    Args:
        fmt_code (str): Formatting code
        date (dt.datetime): Date/time
    """
    parts = fmt_code.split("#")
    for index, part in enumerate(parts):
        if part[0:6] == "<date>":
            parts[index] = date.strftime(part[6:])
    return "".join(parts)