I am trying to use if / then activity based on the date of the week. If itβs Monday the date will be entered should be last Friday " " +Datetime.Today.AddDays(-3).ToShortDateString and other then that it would be the previous date " " +Datetime.Today.AddDays(-1).ToShortDateString. Any pointer on what should I enter in the IF statement?
thanks again @ranjith is it possible to make the date dynamic?
This is what I am using.
ββ+Datetime.Today.AddDays(-3).ToString+Datetime.Today.AddDays(-1).ToString
@ruei yes you can use the above expression. Additionally you can also determine the format of the Date while converting to string. Datetime.Today.AddDays(-3).ToString("dd/MM/yyyy")+Datetime.Today.AddDays(-1).ToString("dd/MM/yyyy")