Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

day - Day of month

Syntax

DayMonth = day(Date)
DayMonth = day(Date, F)

Description

DayMonth = day(Date) returns the day of the month given a serial date number or date string.

DayMonth = day(Date, F) returns the day of the of the month, given a serial date number or date string, in a specified date format.

Examples

DayMonth = day(730544)

or

DayMonth = day('2/28/00')

returns DayMonth = 28

You can also use the F argument to designate a country-specific date format:

DayMonth = day('28/02/00','dd/mm/yyyy')

returns DayMonth = 28

See Also

datevec, eomday, month, year

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS