MATLAB: I’m trying to subtract the day from the datetime

datetime conversionMATLAB

what I have 1-Oct-2016
what I want Oct-2016
I know no longer want the day associated with date.
Thanks

Best Answer

dateshift(dt, 'start', 'month')
There will still be a day associated with it but it would be standardized on first day of month.