Effacer les filtres
Effacer les filtres

How do I get local system format (like dd-mm-yyyy or mm/dd/yyyy) in matlab ?

7 vues (au cours des 30 derniers jours)
MUTHUKUMAR SETHURAM
MUTHUKUMAR SETHURAM le 19 Jan 2017
Commenté : Walter Roberson le 19 Jan 2017
df = 'mm/dd/yyyy';datestr(datenum(today),df)

Réponses (1)

Walter Roberson
Walter Roberson le 19 Jan 2017
datestr(today, 'local')
Or is the question to find out what the system format is ?
  3 commentaires
MUTHUKUMAR SETHURAM
MUTHUKUMAR SETHURAM le 19 Jan 2017
Please see this Capture.PNG
Walter Roberson
Walter Roberson le 19 Jan 2017
To avoid having to write some C++ code to retrieve the information, it is plausible that you might be able to find a Java method for this, or an ActiveX method. This is some sample VBS code at http://www.vb-helper.com/howto_format_time.html

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by