hi guys,
i want to use foreach for items that ends with .xls, starts with “Network attack report”, for spesific month and year
my conditions are :
Path.GetExtension(item.ToString)=“.xls” And Path.GetFileNameWithoutExtension(item.ToString).StartsWith(“Network Attack Report”) And IO.File.GetLastWriteTime(item.ToString).Month.ToString = timeNow.Month.ToString(“3”) And IO.File.GetLastWriteTime(item.ToString).Year = timeNow.Year
i want to add one more condition which is to also read similiar file but the creation date is 1st April, how can i achieve this ?