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

 Akzeptierte Antwort

Jan
Jan am 16 Jul. 2013
Bearbeitet: Jan am 16 Jul. 2013
Try it with uppercase HH:
datevec('2012060112','yyyymmddHH')

Weitere Antworten (1)

Kategorien

Tags

Gefragt:

am 16 Jul. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by