MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
sets the default date format to include a 4-digit year, 2-digit month number, and 2-digit
day number.

To reset the both the default format and the default date-only formats to the factory
defaults, type

datetime.setDefaultFormats('reset')

The factory default formats depend on your system locale.

You also can set the default formats in the Preferences dialog box. For more information,
see “Set Command Window Preferences”.

See Also
calendarDuration | datetime | duration | format

7 Dates and Time

Free download pdf