I have a CSV file with two date columns dd/mm/yyyy format, I am trying to compare dates in those two column with each other and find out difference in third columns in number of days. Right now I am thinking of start like this but this does not helping me much.
Thanks Iain, The following code returning me result from only last row in CSV, not for the first 15 rows just for 16th one. Any suggestions on how to fix it.
I assume that should be just an example of how you could approach this task. Actually you did not provide enough information.
I do further assume that your CSV file has headers - so you should exchange the header names Column1 and Column2 in this snippet with the header names of your CSV file.
If your CSV file does not have headers you should add them along with the Import-Csv cmdlet. And of course you would need to provide the -Delimiter if you do not use the standard.