Ok I have this script where I read in CSV (converted from XLS) and saved the ID field as well as the date field into an array. For instance:
New-Object PSObject -prop @{
TheId = $_."The ID";
TheDate = [DateTime]::Parse($_."The Date")
}
It works like a charm, and I get a nice array of objects with the two properties above. Now I would like to get the number of items in each day, without having to scroll foreach, etc. Is there a better solution for this? (Note that it TheDatecontains different times that I would like to ignore.)
source
share