datetime - How to find the first business date of a week in MATLAB? -
we can use fbusdate
first business day of month:
date = fbusdate(year, month);
however, how first business day of week?
as example, during week i'm posting this, monday 09/07/2017 holiday in us:
isbusday(736942) % = 0
how determine first business day week next day 736943
?
i'm not aware of builtin function returns first working day of week, can obtain requesting the next working day after sunday:
busdate(736941); % 736941 = sunday 09/03/2017
Comments
Post a Comment