regional parameters date format

Hi,
I would like to know if it's possible in Matlab to know the curent regional parameter for the date.
I want use the function: datenum(time_array_string,'dd/mm/yyyy HH:MM:SS') But I'm working with french and US users, so we can have: 'dd/mm/yyyy HH:MM:SS') or 'mm/dd/yyyy HH:MM:SS') That's why I want check the regional parameters to know the date format.
Thanks by advance, Noura Chabane

답변 (3개)

Sean de Wolski
Sean de Wolski 2012년 7월 16일

0 개 추천

Would time zone info be enough?
java.util.Date
Jan
Jan 2012년 7월 16일

0 개 추천

Get the current language:
get(0, 'Language');
This allows to recognize Japanese users, who run Matlab in their home language during a visit in a French institute in Greenland.
Noura
Noura 2012년 7월 16일

0 개 추천

That's helpful, but what I really want is the date format. If I use "get(0, 'Language');" I have to know for each country the date format. I want somethong like get(0, 'Date_Format') ?????

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

질문:

2012년 7월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by