ENH: (GH4629) Support for using a DatetimeIndex/PeriodsIndex directly in a datelike calculation

closes #4629