I was just wondering if there was a better (or more professional) way of assigning a date variable to the previous workday. I'm using whatever value this ends up being as a default value in an input box.
This is what I've written:
This is what I've written:
Code:
If Format(Now(), "dddd") = "Monday" Then strDate = Format(Now() - 3, "d-mmm-yyyy") Else strDate = Format(Now() - 1, "d-mmm-yyyy")