I am querying a data source for dates. Depending on the item I am searching for, it may have more than date associated with it.
get-date ($Output | Select-Object
As Get-Date returns a DateTime object you are able to compare them directly. An example:
Get-Date
(get-date 2010-01-02) -lt (get-date 2010-01-01)
will return false.