Get Local System Date Format

This function returns the local system date format as a MATLAB-friendly date pattern.
299 Downloads
Updated 27 Sep 2012

View License

- 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 (2024). Get Local System Date Format (https://www.mathworks.com/matlabcentral/fileexchange/38379-get-local-system-date-format), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dates and Time in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0