Handling null values with PowerShell dates

Posted by Tim Ferrill on Stack Overflow See other posts from Stack Overflow or by Tim Ferrill
Published on 2014-06-03T14:42:29Z Indexed on 2014/06/03 15:25 UTC
Read the original article Hit count: 160

Filed under:
|

I'm working on a module to pull data from Oracle into a PowerShell data table, so I can automate some analysis and perform various actions based on the results. Everything seems to be working, and I'm casting columns into specific types based on the column type in Oracle. The problem I'm having has to do with null dates. I can't seem to find a good way to capture that a date column in Oracle has a null value.

Is there any way to cast a [datetime] as null or empty?

© Stack Overflow or respective owner

Related posts about Oracle

Related posts about powershell