Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Date and Time Component Formats

Identify dates or times in numeric or string formats

Functions

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

Topics

Handle and Convert Dates

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

Was this topic helpful?