xarray.DataArray.dt.day

DataArray.dt.day

The days of the datetime