For users
apply_ufunc
For developers/contributors
Community
DataArray.dt.month
The month as January=1, December=12