MATLAB Answers

busdate wrong output date

3 views (last 30 days)
Pedro Pantalone
Pedro Pantalone on 24 Oct 2016
Hi,
R2016b; got a problem with busdate:
prev_date = busdate(datenum(num2str(20161024), 'yyyymmdd'), -1);
str2double(datestr(prev_date, 'yyyymmdd'))
20161021
should be 20161023.
Whats wrong here?

  0 Comments

Sign in to comment.

Answers (0)

Tags

Products