I am trying to subtract 3 days from the current system date. from the below syntax,
datetime.Now.ToString(“dd-MM-yy”)
Can anyone advice how to solve this and may I know can I use that syntax in the
“=IF(ISNA(VLOOKUP(A2,‘18-01-19’!A:D,1,FALSE)),”“New Deal”“,”“Old Deal”“)”
Instead of hardcoding date in the vlookup formula can I use dynamic value ?
Much appreciated for your quick reply. while using the Add is giving the result in the Integer type. Would you please suggest what type of variable I can use for this?
yes,DateTime.now.AddDays(-3).ToString(“dd-MM-yy”) is correct. if you use Add(-3) then you will get a error like integer cannot be converted to system.timespan.