Import-XLSX -Text -- doesn't like dates
schwin97 opened this issue · comments
schwin97 commented
Importing a file with the '-Text' parameter causes the value to be passed to [datetime]::FromOADate to be a string. This causes the catch block to get executed each time. I would think bracketing this with a check for the Text parameter could easily skip this step that will always fail.