This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Date and Time Component Formats

Identify dates or times in numeric or string formats


now Current date and time as serial date number
today Current date
datefind Indices of dates in matrix
datevec Convert date and time to vector of components
day Day of month
eomdate Last date of month
hour Hour of date or time
lweekdate Date of last occurrence of weekday in month
second Seconds of date or time
minute Minute of date or time
month Month of date
months Number of whole months between dates
nweekdate Date of specific occurrence of weekday in month
weeknum Week in year
year Year of date
yeardays Number of days in year


Handle and Convert Dates

Handling and converting date character vectors, serial date numbers, and cash-flow dates.

Was this topic helpful?