Hi all,
It’s been awhile since I posted here.
My question is: I have date in a CSV file and want to compare it if it’s seven (7) days from current date. If yes, then an activity (email) is done. Else, nothing.
Appreciate your help.
Hi all,
It’s been awhile since I posted here.
My question is: I have date in a CSV file and want to compare it if it’s seven (7) days from current date. If yes, then an activity (email) is done. Else, nothing.
Appreciate your help.
Use it inside inside if condition:
Now.AddDays(7).ToString("dd-MM-yyyy").Equals(Date.Parse(csvDate.ToString).ToString("dd-MM-yyyy"))