14-Apr-2019
S = cellstr(t,'dd. MMMM yyyy','de_DE')
S = 2x1 cell array
{'13. April 2019'}
{'14. April 2019'}
S is a cell array of character vectors representing dates in German. You can export S to a
text file to use with systems in the de_DE locale.
Read Dates in Other Languages
You can read text files containing dates and time in a language other than the language
that MATLAB uses, which depends on your system locale. Use the textscan or
readtable functions with the DateLocale name-value pair argument to specify the
locale in which the function interprets the dates in the file. In addition, you might need to
specify the character encoding of a file that contains characters that are not recognized
by your computer's default encoding.
- When reading text files using the textscan function, specify the file encoding when
opening the file with fopen. The encoding is the fourth input argument to fopen. - When reading text files using the readtable function, use the FileEncoding name-
value pair argument to specify the character encoding associated with the file.
See Also
cellstr | char | datetime | readtable | textscan
See Also