MATLAB Answers

0

Getting a list of business days ignoring holidays regardless of timezone/country.

Asked by Ajpaezm on 4 Jan 2018
Latest activity Edited by Ajpaezm on 4 Jan 2018
Hello,
I'd like to make an array of dates containing business days regardless of the holidays (if there's any within that range).
The list I can make it like this:
start='12/11/2017';
finish='12/15/2017';
formatOut = 'mm/dd/yy';
date_vector=string(datestr(busdays(start,finish),formatOut));
Reading the docs, I looked at 'holvec' input for the busdays function. I'm not sure how to configure it in order to get any business day regarding the timezone (I'll be working with data from different places and a holiday in one hardly will be a holiday in another).
Should I configure 'holvec' in the busdays function? Or with the current settings I have, I don't have to care about holidays at all?
Thanks in advance.

  0 Comments

Sign in to comment.

0 Answers