import re


def split_date_into_components(date, delimiter: str):
    """
    Split a date in the YYYY MM DD format with a given delimiter
    into its year, month, day components
    Useful for prepopulated fields
    """
    split_date = re.split("[%s]" % ("".join(delimiter)), date)
    return split_date[0], split_date[1], split_date[2]