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 date numbers 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
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

Examples and How To

Was this topic helpful?