Hi All
Need assistance !!
I'm looking to arrive at good business day, for example I have Date column with yesterday date (COB Date) and want to put a condition stating.
"If COB date is Saturday or Sunday then it should appear Friday else COB Date"
Note: COB date is nothing but yesterday date.
Using Formula Tool I have tried this but not able to extract accurate condition.
IF DateTimeFormat(DateTimeAdd([COB Date],-1,"days"),"%A") = "Saturday"
THEN
DateTimeAdd([COB Date],-2,"days")
ELSEIF
DateTimeFormat(DateTimeAdd([COB Date],-1,"days"),"%A") = "Sunday"
THEN
DateTimeAdd([COB Date],-2,"days")
ELSE
DateTimeAdd(datetimenow(),-1,"days")
ENDIF
Thanks