datenum
- datenum(Y,M,D) returns the date number corresponding to year Y, month M and month day D
- datenum(str) convers the string str into a date number assuming that date format is 'mm/dd/yyyy'
- datenum(str,dateformat) uses the date format specified in the second parameter. The following format are handled:
- 'yyyy/mm/dd'
- 'yyyy-mm-dd'
- 'mm/dd/yyyy'
- 'mm-dd-yyyy'
- 'dd/mm/yyyy'
- 'dd-mm-yyyy'
- 'dd/mmm/yyyy'
- 'dd-mmm-yyyy'
Examples
> datenum(2015,05,15)# 736099
> datenum('05/15/2015')# 736099
> datenum('2015/05/15','yyyy/mm/dd')# 736099
> datenum({'2015,05,15'; '2014, 01, 24'}, 'yyyy,mm,dd')# 736099 735623