datevec - Date components
V = datevec(DT) converts a serial date number (defined by datenum) to a date vector V having elements [year, month, day, hour, minute, second]. The first five vector elements are integers.
[Y, M, D, H, MI, S] = datevec(DT) returns the components of the date vector as individual variables
datevec(720840) datevec(datenum())