Financial Toolbox | ![]() ![]() |
Excel serial date number to MATLAB serial date number
Syntax
Arguments
Vector arguments must have consistent dimensions.
Description
DateNumber = x2mdate(ExcelDateNumber, Convention)
converts Excel serial date numbers to MATLAB serial date numbers. MATLAB date numbers start with 1 = January 1, 0000 A.D., hence there is a difference of 693961 relative to the 1900 date system, or 695422 relative to the 1904 date system. This function is useful with MATLAB Excel Link.
Examples
Given Excel date numbers in the 1904 system
convert them to MATLAB date numbers
See Also
![]() | wrkdydif | xirr | ![]() |