Main Content







datefindIndices of dates in matrix
dayDay of month
eomdateLast date of month
hourHour of date or time
lweekdateDate of last occurrence of weekday in month
secondSeconds of date or time
minuteMinute of date or time
monthMonth of date
monthsNumber of whole months between dates
nweekdateDate of specific occurrence of weekday in month
weeknumWeek in year
yearYear of date
yeardaysNumber of days in year
date2timeTime and frequency from dates
datedispDisplay date entries
m2xdateMATLAB date to Excel serial date number
time2dateDates from time and frequency
uicalendarGraphical calendar
x2mdateExcel 日期序列值转 MATLAB 日期序列值或日期时间格式
busdateNext or previous business day
busdaysBusiness days for given period
datemnthDate of day in future or past month
datewrkdyDate of future or past workday
days252busNumber of business days between dates
days360Days between dates based on 360-day year
days360eDays between dates based on 360-day year (European)
days360isdaDays between dates based on 360-day year (International Swap Dealer Association (ISDA) compliant)
days360psaDays between dates based on 360-day year (Public Securities Association (PSA) compliant)
days365Days between dates based on 365-day year
daysaddDate away from starting date for any day-count basis
daysdifDays between dates for any for any day-count basis
fbusdateFirst business date of month
isbusdayTrue for dates that are business days
lbusdateLast business date of month
quarterReturns the quarter of given date
thirdwednesdayFind third Wednesday of month
wrkdydifNumber of working days between dates
createholidaysCreate trading calendars
holidaysHolidays and nontrading days
nyseclosuresNew York Stock Exchange closures from 1885 to 2070
addBusinessCalendarAdd business calendar awareness to timetables
accrfracFraction of coupon period before settlement
cpncountCoupon payments remaining until maturity
cpndatenNext coupon date for fixed-income security
cpndatenqNext quasi-coupon date for fixed-income security
cpndatepqPrevious quasi-coupon date for fixed-income security
cpndatepPrevious coupon date for fixed-income security
cpndaysnNumber of days to next coupon date
cpndayspNumber of days since previous coupon date
cpnperszNumber of days in coupon period
cur2fracDecimal currency values to fractional values
cur2strBank-formatted text
dec2thirtytwoDecimal to thirty-second quotation
frac2curFractional currency value to decimal value
thirtytwo2decThirty-second quotation to decimal




Trading Calendars User Interface

Using the Trading Calendars user interface to manage holidays.

UICalendar User Interface

Using uicalendar to manage dates.