Forum Discussion
Tony2021
Feb 27, 2022Iron Contributor
Calculated Dates (taking into Account Holidays)
Hello Experts, I am building a table: tblDatesDeliver. There are 5 fields in this table. 2 are manually entered 3 should be calculated based on the number of business days count prior I h...
- Mar 11, 2022
im too lazy to follow the thread.
but i get the idea based on the worksheet to attached.
see your demo.
George_Hepworth
Mar 11, 2022Silver Contributor
arnel_gp Interesting, but your code also returns the wrong date, the 27th, not the 26th.
I'm still unsure as to why I do get the right date and Tony doesn't from the same data and function.
I suppose I could hard code the three options specified in the original question as default number of days, but my version allows for any date and number of days calculations, hence, more flexibility for other uses.
arnel_gp
Mar 11, 2022Iron Contributor
are you referring to March month?
then your date is reversed, should be:
#3/11/2022# (US-date format) or
#2022-11-3# (iso format).
if you enter the same infor like in the worksheet it will give
same result.
- George_HepworthMar 11, 2022Silver ContributorNo, the date is November 3, 2022. Not March.
- arnel_gpMar 11, 2022Iron Contributoron the worksheet is March.
coincidence? today's date?- George_HepworthMar 11, 2022Silver ContributorYes, it is.