Problem with datevec: It returns the same vector for two different dates

I'm trying to get the vector for two different date strings but I get the same answer for different inputs:
datevec('2012060100','yyyymmddhh') ans =
2012 6 1 0 0 0
datevec('2012060112','yyyymmddhh') ans =
2012 6 1 0 0 0

 採用された回答

Jan
Jan 2013 年 7 月 16 日
編集済み: Jan 2013 年 7 月 16 日

1 投票

Try it with uppercase HH:
datevec('2012060112','yyyymmddHH')

その他の回答 (1 件)

hasan
hasan 2013 年 7 月 16 日

0 投票

Thanks, It works perfect

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

タグ

質問済み:

2013 年 7 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by