Get Local System Date Format

This function returns the local system date format as a MATLAB-friendly date pattern.

You are now following this Submission

- Works on both Windows and Mac OS.
- Returns a date pattern that can be used with built-in date-related functions like datenum, datestr etc.
- Can be used to automatically parse dates returned as locale-dependent strings via ADODB.

Usage example:
disp(datestr(today, getsystemdateformat))

Cite As

Ivan Smirnov (2026). Get Local System Date Format (https://www.mathworks.com/matlabcentral/fileexchange/38379-get-local-system-date-format), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0