RamblingCookieMonster / PSExcel

A simple Excel PowerShell module

Home Page:http://ramblingcookiemonster.github.io/PSExcel-Intro/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import-XLSX -Text -- doesn't like dates

schwin97 opened this issue · comments

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.