SyntaxFix
Write A Post
Hire A Developer
Questions
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.