Suppose TS is your timeseries. Then
TS.TimeInfo.Format = 'dd-mmm-yyyy';
after which
getabstime(TS)
would use that format.
The format specification uses datestr(), not datetime() forms, and there are a limited number of supported formats. It must be one of the forms returned by tsgetDateFormat(). Exact matches are used -- case sensitive, no added spaces permitted, and you cannot use different delimiters.
{'dd-mmm-yyyy HH:MM:SS' }
{'dd-mmm-yyyy HH:MM:SS.FFF'}
{'dd-mmm-yyyy' }
{'mm/dd/yy' }
{'HH:MM:SS' }
{'HH:MM:SS.FFF' }
{'HH:MM:SS PM' }
{'HH:MM:SS.FFF PM' }
{'HH:MM' }
{'HH:MM PM' }
{'mmm.dd,yyyy HH:MM:SS' }
{'mmm.dd,yyyy HH:MM:SS.FFF'}
{'mmm.dd,yyyy' }
{'mm/dd/yyyy' }