Validate item's date created

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 ?

nvm i got it

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.