def split_date(dates):
    """
    Split datetime64 dates into year, month, day components.
    """
    y = dates.astype("<M8[Y]").astype(int) + 1970
    m = dates.astype("<M8[M]").astype(int) % 12 + 1
    d = (dates - dates.astype("<M8[M]")).astype("<m8[D]").astype(int) + 1
    return y, m, d